![]() |
|
Getting 504'd - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: Getting 504'd (/Thread-Getting-504-d) |
Getting 504'd - XTH - 06-30-2019 Code: import requests
url = "https://website.com/message"
data = {"text":"XTH","cookie":"","wording":"Send message "}
r = requests.post(url = url, data = data)
responsetext = r.text
print(responsetext)Why am I getting a 504 error? RE: Getting 504'd - ID3F4CTED - 06-30-2019 (06-30-2019, 09:20 PM)XTH Wrote: I just found this articel. Maybe you can solve it with this. RE: Getting 504'd - OGs - 07-01-2019 try to flush dns open cmd and type: ipconfig /flushdns RE: Getting 504'd - Leviathan - 07-01-2019 As @"KBytes" said, if that doesn't work then you might have to wait since it could be a server issue right now. Also you could let someone else try RE: Getting 504'd - Tracefl0w - 07-01-2019 Usually I'd say that you can't fix it since 504 is not your problem but server side. However, I see that you haven't specified timeout which is disabled by default. I think that your request to the server is timing out in its communication with your endpoint server, hence the 504. You should use the timeout parameter r = requests.post(url, data=payload, timeout=4.5) |