How do I fix OpenAPI document generation on Google Cloud Endpoints?
I am working through the tutorial: 'Getting Started with Cloud Endpoints Frameworks on App Engine Standard'.
https://cloud.google.com/endpoints/docs/frameworks/python/get-started-frameworks-python
On step two of the 'Generating the OpenAPI document' section when running the command after having replaced 'MY_PROJECT_ID' with my project ID:
python lib/endpoints/endpointscfg.py get_openapi_spec main.EchoApi --hostname [MY_PROJECT_ID].appspot.com
I get the following error:
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 31, in <module>
main(sys.argv)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 617, in main
args.callback(args)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 465, in _GenOpenApiSpecCallback
x_google_api_name=args.x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 308, in _GenOpenApiSpec
x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 216, in GenApiConfig
services, hostname=hostname, **additional_kwargs))
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1064, in pretty_print_config_to_json
descriptor = self.get_openapi_dict(services, hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1050, in get_openapi_dict
return self.__api_openapi_descriptor(services, hostname=hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 951, in __api_openapi_descriptor
security_definitions)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 756, in __method_descriptor
api_key_required=api_key_required)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 791, in __security_descriptor
'audiences must be a dict when third-party issuers '
endpoints.api_exceptions.ApiConfigurationError: audiences must be a dict when third-party issuers (auth0, firebase, etc) are in use.
Does anyone know how to address this?
python api google-app-engine google-cloud-platform google-cloud-endpoints
add a comment |
I am working through the tutorial: 'Getting Started with Cloud Endpoints Frameworks on App Engine Standard'.
https://cloud.google.com/endpoints/docs/frameworks/python/get-started-frameworks-python
On step two of the 'Generating the OpenAPI document' section when running the command after having replaced 'MY_PROJECT_ID' with my project ID:
python lib/endpoints/endpointscfg.py get_openapi_spec main.EchoApi --hostname [MY_PROJECT_ID].appspot.com
I get the following error:
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 31, in <module>
main(sys.argv)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 617, in main
args.callback(args)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 465, in _GenOpenApiSpecCallback
x_google_api_name=args.x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 308, in _GenOpenApiSpec
x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 216, in GenApiConfig
services, hostname=hostname, **additional_kwargs))
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1064, in pretty_print_config_to_json
descriptor = self.get_openapi_dict(services, hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1050, in get_openapi_dict
return self.__api_openapi_descriptor(services, hostname=hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 951, in __api_openapi_descriptor
security_definitions)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 756, in __method_descriptor
api_key_required=api_key_required)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 791, in __security_descriptor
'audiences must be a dict when third-party issuers '
endpoints.api_exceptions.ApiConfigurationError: audiences must be a dict when third-party issuers (auth0, firebase, etc) are in use.
Does anyone know how to address this?
python api google-app-engine google-cloud-platform google-cloud-endpoints
add a comment |
I am working through the tutorial: 'Getting Started with Cloud Endpoints Frameworks on App Engine Standard'.
https://cloud.google.com/endpoints/docs/frameworks/python/get-started-frameworks-python
On step two of the 'Generating the OpenAPI document' section when running the command after having replaced 'MY_PROJECT_ID' with my project ID:
python lib/endpoints/endpointscfg.py get_openapi_spec main.EchoApi --hostname [MY_PROJECT_ID].appspot.com
I get the following error:
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 31, in <module>
main(sys.argv)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 617, in main
args.callback(args)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 465, in _GenOpenApiSpecCallback
x_google_api_name=args.x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 308, in _GenOpenApiSpec
x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 216, in GenApiConfig
services, hostname=hostname, **additional_kwargs))
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1064, in pretty_print_config_to_json
descriptor = self.get_openapi_dict(services, hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1050, in get_openapi_dict
return self.__api_openapi_descriptor(services, hostname=hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 951, in __api_openapi_descriptor
security_definitions)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 756, in __method_descriptor
api_key_required=api_key_required)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 791, in __security_descriptor
'audiences must be a dict when third-party issuers '
endpoints.api_exceptions.ApiConfigurationError: audiences must be a dict when third-party issuers (auth0, firebase, etc) are in use.
Does anyone know how to address this?
python api google-app-engine google-cloud-platform google-cloud-endpoints
I am working through the tutorial: 'Getting Started with Cloud Endpoints Frameworks on App Engine Standard'.
https://cloud.google.com/endpoints/docs/frameworks/python/get-started-frameworks-python
On step two of the 'Generating the OpenAPI document' section when running the command after having replaced 'MY_PROJECT_ID' with my project ID:
python lib/endpoints/endpointscfg.py get_openapi_spec main.EchoApi --hostname [MY_PROJECT_ID].appspot.com
I get the following error:
Traceback (most recent call last):
File "lib/endpoints/endpointscfg.py", line 31, in <module>
main(sys.argv)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 617, in main
args.callback(args)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 465, in _GenOpenApiSpecCallback
x_google_api_name=args.x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 308, in _GenOpenApiSpec
x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/_endpointscfg_impl.py", line 216, in GenApiConfig
services, hostname=hostname, **additional_kwargs))
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1064, in pretty_print_config_to_json
descriptor = self.get_openapi_dict(services, hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 1050, in get_openapi_dict
return self.__api_openapi_descriptor(services, hostname=hostname, x_google_api_name=x_google_api_name)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 951, in __api_openapi_descriptor
security_definitions)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 756, in __method_descriptor
api_key_required=api_key_required)
File "/home/samuel_lessing/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py", line 791, in __security_descriptor
'audiences must be a dict when third-party issuers '
endpoints.api_exceptions.ApiConfigurationError: audiences must be a dict when third-party issuers (auth0, firebase, etc) are in use.
Does anyone know how to address this?
python api google-app-engine google-cloud-platform google-cloud-endpoints
python api google-app-engine google-cloud-platform google-cloud-endpoints
edited Nov 26 '18 at 19:39
Sam Lessing
asked Nov 24 '18 at 4:32
Sam LessingSam Lessing
32
32
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
thanks for using Cloud Endpoints Frameworks.
This is a bug that was introduced in Frameworks version 4.7.0. I've opened https://github.com/cloudendpoints/endpoints-python/issues/184 to track it and will try to have a fix out soon.
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53455146%2fhow-do-i-fix-openapi-document-generation-on-google-cloud-endpoints%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
thanks for using Cloud Endpoints Frameworks.
This is a bug that was introduced in Frameworks version 4.7.0. I've opened https://github.com/cloudendpoints/endpoints-python/issues/184 to track it and will try to have a fix out soon.
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
add a comment |
thanks for using Cloud Endpoints Frameworks.
This is a bug that was introduced in Frameworks version 4.7.0. I've opened https://github.com/cloudendpoints/endpoints-python/issues/184 to track it and will try to have a fix out soon.
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
add a comment |
thanks for using Cloud Endpoints Frameworks.
This is a bug that was introduced in Frameworks version 4.7.0. I've opened https://github.com/cloudendpoints/endpoints-python/issues/184 to track it and will try to have a fix out soon.
thanks for using Cloud Endpoints Frameworks.
This is a bug that was introduced in Frameworks version 4.7.0. I've opened https://github.com/cloudendpoints/endpoints-python/issues/184 to track it and will try to have a fix out soon.
answered Nov 26 '18 at 22:37
Rose DavidsonRose Davidson
56226
56226
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
add a comment |
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Frameworks version 4.8.0 has been released, which includes a fix for this issue.
– Rose Davidson
Nov 27 '18 at 0:05
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Hello Rose, how do we upgrade to the newest version of Framework?
– hyang123
Nov 28 '18 at 3:32
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Simply change the version number in the requirements.txt and reinstall dependencies. It's the same as for upgrading any other Python library.
– Rose Davidson
Nov 30 '18 at 16:56
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
Brilliant! can you update the dependencies in the example code in github.com/GoogleCloudPlatform/python-docs-samples/blob/master/…
– s d
Dec 18 '18 at 20:53
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
I don't actually have permissions to do that; there's a bot which updates them every so often.
– Rose Davidson
Dec 19 '18 at 19:14
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53455146%2fhow-do-i-fix-openapi-document-generation-on-google-cloud-endpoints%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown