Delivery customization private access tokens throwing 401

I’ve created an app that has a customization delivery extension (a shopify function) and installed it in my store. This function hides rates if a condition is met. I installed it and it worked fine. Then, I was editing my code in the main-cart-items.liquid file so that it would overwrite the commune input in the checkout. For this I excecute /cart?checkout url. After a few minutes, the delivery rates stopped appearing in the shipping section of the checkout, and the console throws 401 on the request https://my-url.myshopify.com/private_access_tokens?id=**&checkout_type=*.
I reviewed the documentation of the shopify functions and my intuition is that it is a problem of the tokens of my application, but I have configured the online tokens with AppBridgeProvider, which I understand this is responsible for refreshing the tokens for each request that is made, so it should not throw error.
Also, I don’t know if the error has to do with the call of /cart?checkout, because after a while of executing this, it started to fail.

Here I leave an image of the error.

Is there anyone who knows what could be happening? I would appreciate the help.

1 Like

This looks unrelated to the function itself, as the function doesn’t require any tokens from your app. Are you still encountering this issue?

No, I decided to uninstall and recreate the application and the problem was fixed. Thanks!

I am getting the same error as well, I am trying to update the shipping address. I tried to uninstall and install it, but I failed.

1 Like

hey, did you get the solution for this , i am facing the same issue

1 Like

Hey, did you got any solution ?

1 Like

For me I got to know it’s the autocomplete attribute in the TextField element. As soon i removed it, it started working.

1 Like