Help translating from python3 requests to urequests?.... "NotImplementedError: Redirects not yet supported" #13363
-
I'm trying to move my python3 script to micropython on an ESP32 C3. It loads solar power and consumption data from my enphase envoy solar, to control hot water switching with a Shelly relay. Unforunately I can't get a working urequests.get This works in python3:
In micropython so far I have this:
Traceback (most recent call last): Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've found this snippet to work out what redirection is happening:
And the output was:
So I fixed my script to point to https! |
Beta Was this translation helpful? Give feedback.
I've found this snippet to work out what redirection is happening:
And the output was:
So I fixed my script to point to https!