Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-51362

Warning if variable name contains builtin api name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • eventing
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      I have a 7.X function "basicLocalCurlGetWithTiming.json" that used to import and work fine.  I now get an error that says:

      Function tries to overload following builtin API(s): curl

      If I edit the javascript and global replace the word 

      • curl with rest

      then replace

      • rest( with curl( for the actual function call

      the issue goes away, not sure if it is the variable names, comments, or strings in he log calls.

      Update: You can replace the variable do_curl with do_rest and the issue will also go away.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sujay.gad Sujay Gad
              jon.strabala Jon Strabala
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty