Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Configure App Engine Multi Class Endpoints
    primarykey
    data
    text
    <p>I'm currently setting up a project to use app engine with python 2.7 on mac and the new endpoints with a multi class configuration. I believe I'm following the instructions, but when I execute a GET request I receive the following error from wsgi.</p> <pre><code>TypeError: __call__() takes exactly 2 arguments (3 given) </code></pre> <p>In my app.yaml I have the following configuration.</p> <pre><code>handlers: - url: /_ah/spi/.* script: apis.api </code></pre> <p>In my apis.py I have the following.</p> <pre><code>api = endpoints.api(name="marketplace", version="v1") @api.api_class(resource_name="system") class SystemApi(remote.Service): @endpoints.method(message_types.VoidMessage, message_types.VoidMessage, path="about", http_method="GET") def about(self, request): logging.debug("enter") return message_types.VoidMessage() server = endpoints.api_server([api], restricted=False) </code></pre> <p>Then I'm trying to simply perform a get request doing the following.</p> <pre><code>curl http://localhost:8080/_ah/api/marketplace/v1/system/about </code></pre> <p>In which case I receive the following error.</p> <pre><code>Mon, 30 Dec 2013 00:31:33 ERROR wsgi.py wsgi.Handle:278 Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 266, in Handle result = handler(dict(self._environ), self._StartResponse) TypeError: __call__() takes exactly 2 arguments (3 given) INFO 2013-12-30 00:31:33,710 module.py:617] default: "POST /_ah/spi/BackendService.getApiConfigs HTTP/1.1" 500 - INFO 2013-12-30 00:31:33,710 module.py:617] default: "GET /_ah/api/marketplace/v1/system/about HTTP/1.1" 500 60 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload