How to save data obtained through http_endpoint?

Hi,

I was exploring how to use http_endpoint to get data through url, I used this example in the Docs: https://anvil.works/docs/http-apis/creating-http-endpoints/quickstart
It work fine

However, when I tried to save the obtained data into the “Data Tables”


I got this error: “An exception was raised. Check the application logs for details.”
here is the copy of the app: https://anvil.works/build#clone:V4QIBEWYS3BZYTI5=EU2DGQV6TYB72ONAANNDHUCK

So, my first question is how to save the obtained data into the data table?

and the second question, if I make the app public, how can I pass data through the url?

Thank you!

I added [“POST”] and I got this error:
Method not supported

I guess the error message here was helpful - if you check the logs you’ll find the problem…

anvil.tables.TableError: Column 'Column0' is a string - cannot set it to a number
at , line 1
3 Likes

Interesting! that took care of it, but where can you find the logs?

Screen Shot 2020-05-15 at 07.58.36

3 Likes

Thank you, That’s very helpful, I don’t know how I missed it :blush: