I cannot update Function code in the browser!
# prisma-whats-new
h
I cannot update Function code in the browser!
got it twice
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.
Uncaught (in promise) TypeError: Failed to fetch
I just trying to update Function
n
hey @hammerspb this is most likely due to your specific function code. can you double check if you have an error there? alternatively, you can copy the network request to
create
as cURL and send it to me that would also be helpful
h
My bad! I had error in my function
n
ok
we'll soon return a user facing error message instead of a 502 🙂
h
Cool. Could we use Template literals in our code?
n
you mean
Copy code
`${myVar}`
?
h
Yeap
n
you can
h
Ok. Thank you @nilan
👍 1