<@U0RQY0KK5> I am trying to create a new subscript...
# prisma-whats-new
y
@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:
Copy code
<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.
a
That error usually indicates a syntax error in your function code.
y
@agartha OK I see. Many thanks.
😎 1
👍 1