Handling response stucked in app development - 401 http error code

Handling response stucked in app development - 401 http error code

papart
Shopify Partner
1 0 0
Hi. I am currently having a hard time looking for a solution regarding with this. Please help.
 
I created an app 2 weeks ago that was working well. But today I tried up-ing it but this issue now occurs.
I tried also creating a new app using the npm init @Shopify/app@latest and installed the app to my development store but still the issue occurs.
Tried different kinds of browsers. Different partner accounts. I also even restarted my local machine. But unfortunately nothing good happened.
I also even tried creating a docker environment to isolate this but still the issue occurs. It's weird because we tried installing this app to my colleague's development store on his machine and it works fine. This issue only occurs on my development machine.
 
image.png
Replies 2 (2)

lamallam
Shopify Partner
2 0 0

I'm facing the same issue, yesterday the app worked fine, but today it stuck, i tried to create a new app, the same issue, i changed tunneling, but nothing good til now :::::(

lamallam
Shopify Partner
2 0 0

Hi,

I think I found by luck the fix for the issue, 

Simply go to the partner dashboard, select your app in the left menu, and then when you are in the app dashboard, select API access. in the Credentials section click on the "Generate refresh token button", it seems that the access token generated before has expired. a refresh token will generate a new access token each time you make a request, valid for an hour.