Discussion:
[bottlepy] POST method call works through postman, but doesn't work from the browser
Sam W
2018-04-08 08:43:14 UTC
Permalink
Hello everyone,
I faced really small error. but unfortunately I was not able to solve it.
POST method call works through postman, but doesn't work from the
browser!! I get this message:
AttributeError("'NoneType' object has no attribute 'get'",)

I will really appreciate it if someone can help. OR guide me to a complete
example that shows the whole posting process between the html/browser and
Python.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Patrick B
2018-04-19 18:56:50 UTC
Permalink
We might need to see your code. Does it look something like this?
https://bottlepy.org/docs/dev/tutorial.html#http-request-methods

It's not clear from your message but want to make sure you know that you
cannot just type the URL into the browser and hit [enter]. That will issue
a GET request which looks like the error message you are getting. To do a
POST in the browser you need to press a button on the web page the will
POST the form data to your app.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...