1

What I currently have is something like (endpoints/params are valid, I checked them using another tool)

from urllib import request
...
data = {"name":"abc", "fireDate":"123", "endLocationName":"home"}
request.post("http://someurl.com", json=data)

However, the alexa responds with

there is a problem with the requested skills response

Nothing is outputed on the AWS X-Ray.

1 Answer 1

4

There is no urllib.request.post. You are maybe confusing the usage of requests package with the inbuilt urllib library module.


>>> from urllib import request
>>> request.post
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'urllib.request' has no attribute 'post'
Sign up to request clarification or add additional context in comments.

2 Comments

You mean like from urllib.request import post?
@sitilge yes. Exactly that. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.