Closed kimmellr closed 3 years ago
I was following the Twitter guide on adafruit (https://learn.adafruit.com/twitter-api-use/pyportal-circuitpython-setup) and could not get a response.
It looks like the header is never passed to the network.fetch function.
Modifying fetch request in the the adafruit_pyportal__init__.py file to this resolved the issue.
response = self.network.fetch(self.url, headers=self._headers, timeout=timeout)
thanks, can you submit a PR? :)
I'll look up how to do that!
Fixed by #107
I was following the Twitter guide on adafruit (https://learn.adafruit.com/twitter-api-use/pyportal-circuitpython-setup) and could not get a response.
It looks like the header is never passed to the network.fetch function.
Modifying fetch request in the the adafruit_pyportal__init__.py file to this resolved the issue.
response = self.network.fetch(self.url, headers=self._headers, timeout=timeout)