Expand my Community achievements bar.

Auth error: 401 with or without extension

Avatar

Community Advisor

Hey Guys! 

@dr_venture @duypnguyen 

I have been trying to wrap my head around extension and looking forward to the recording of the Aug 12 event, Meanwhile i have issues when i bootstrap an app with or without extension added. 

 

I get an error

 

failed request to 'https://115564-digitalbau-stage.adobeioruntime.net/api/v1/web/nonExtnDemo/analytics' with status: 401 and message: {
  "error": "request is invalid, reason: failed authorization. Please verify your token and organization id."
}

The app includes .env file with required details and i can see the frontend sending headers with required information. 

Also i observed that the action url in config.json and in adobe io console stage workspace are different. Not sure if that makes any difference 

nonextndemo.jpg

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Employee

Hi @Anil_Umachigi -

For the action URLs, what is called by the UI is the config.json. The list on Console is just for reference purpose and the hostname could be different (it was a legacy hostname not used anymore).

For the 401 error: Did it work before and only failed since the extension point feature was released?

Along with the new feature release, the auth validator for SPA was updated as well. It should still work as before, because all the conditions remain the same (that your account should have developer role in the org for all the services / APIs that the project includes).

Avatar

Community Advisor

Thanks for getting back and for the clarification on the action URL's.

Since the time extension was released i am unable to get this working irrespective of with or without extension option. 

I get the same error and since i'm admin i do not see that can be an issue, or does the user need to be included as developer apart from being an admin? 

 

 

 

 

Avatar

Employee
I could somewhat reproduce the issue. It didn't help to be a user / developer / admin of the single product profiles. I got around it by being an admin of the entire product (such as Campaign Standard or Analytics). I'm verifying with the auth back-end team as this is quite unexpected.

Avatar

Community Advisor

Thank you! Please let us know when you hear back. A regular user in a defined profile should have this working. We cannot really grant product admin to make this work.

 

Editing to add 

Being a product admin (analytics) did not make this work either

Even for a generic action not tied to any adobe experience cloud products i got the same error.