Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Admin orders.json API Pagination Issues - Link Not In Header

Admin orders.json API Pagination Issues - Link Not In Header

vemulam
Visitor
3 0 0

Hi,

We are having issues with the following API:
https://squaretrade-device-repair.myshopify.com/admin/orders.json

 

We are getting the following error while parsing Link header:

 

 "/opt/eng/stgo/app/device_repair/services/shopify.py", line 117, in _parse_link_header#012 link_header = response.headers["Link"]#012 File "/opt/eng/stgo/virtualenv/lib/python3.5/site-packages/requests/structures.py", line 54, in __getitem__#012 return self._store[key.lower()][1]#012KeyError: 'link'

 

Any ideas as to what's going on here? 

We are seeing this recently (like from last month or so) in production. But found the issue now. Any help is highly appreciate here. 

 

Thanks & Regards,
Venkat

Replies 2 (2)

vemulam
Visitor
3 0 0

I have used basic authentication while calling this GET call.

vemulam_0-1653573069830.png

 

vemulam
Visitor
3 0 0

Here is the list of headers I am getting now:

vemulam_2-1653573192911.png

 


Cont.

vemulam_3-1653573238591.png