09/25/2017, 11:07 AM
@nilan I am trying to create a new subscription function from console. But after I clicked the update function button, the spinning on the screen doesn’t go away. I saw some error messages from the browser console:
<http://2d0b5iw4041.execute-api.eu-west-1.amazonaws.com/prod/create/|2d0b5iw4041.execute-api.eu-west-1.amazonaws.com/prod/create/> Failed to load resource: the server responded with a status of 502 ()
edit:1 Fetch API cannot load <https://d0b5iw4041.execute-api.eu-west-1.amazonaws.com/prod/create/>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<https://console.graph.cool>' is therefore not allowed access. The response had HTTP status code 502. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
edit:1 Uncaught (in promise) TypeError: Failed to fetch
Do you have any idea where is the problem? Many thanks.


09/25/2017, 11:13 AM
That error usually indicates a syntax error in your function code.


09/25/2017, 11:15 AM
@agartha OK I see. Many thanks.
😎 1
👍 1