Coder Social home page Coder Social logo

Comments (5)

benrwoodard avatar benrwoodard commented on August 20, 2024

We actually just had another JWT auth issue #145 just like this. The solution was to change from 'developer' to 'admin' and aw_workspace_report should work correctly.

The reason why your auth will be successful but the workspace report won't work is permissions. Authentication is handled via the AEP API and the data is handled via the CJA API.

Let me know if you have any other issues after you make that permission change.

Thanks

from adobeanalyticsr.

davidanalyst avatar davidanalyst commented on August 20, 2024

Hi Ben, thanks for your quick response.

I actually had both admin and developer permissions. Is there a specific product I should have permission for as an 'admin'?

Thank you.

from adobeanalyticsr.

davidanalyst avatar davidanalyst commented on August 20, 2024

Strangely enough, aw_freeform_table() seems to work, but aw_get_segments, or aw_get_metrics() gives the 403 error. Not sure how to interpret this.

from adobeanalyticsr.

OmarGonD avatar OmarGonD commented on August 20, 2024

Have same issue:

1.- at 5 pm. at laptop work, I could authenticate and download data (OATH method). First time setting the library in work laptop.

2.- 10 pm at home, on my PC that I've used a couple of weeks before to pull data, and can authenticate but not pull data...

> library(adobeanalyticsr)
> aw_auth_with('oauth')
> aw_auth()
Successfully authenticated with OAuth
> aa <- aw_freeform_table(
+   company_id = Sys.getenv("AW_COMPANY_ID"),
+   rsid = Sys.getenv("AW_REPORTSUITE_ID"),
+   date_range = c("2022-08-14", "2022-08-15"),
+   dimensions = c("campaign"),
+   metrics = c("visits"),
+   top = c(1032),
+   page = 0,
+   filterType = "breakdown",
+   segmentId = NA,
+   metricSort = "desc",
+   include_unspecified = TRUE,
+   search = NA,
+   prettynames = FALSE,
+   debug = FALSE,
+   check_components = TRUE
+ )
Auto-refreshing stale OAuth token.
Error in refresh_oauth2.0(self$endpoint, self$app, self$credentials, self$params$user_params, : Bad Request (HTTP 400).
Request failed [ERROR]. Retrying in 1.1 seconds...
Auto-refreshing stale OAuth token.
Error in refresh_oauth2.0(self$endpoint, self$app, self$credentials, self$params$user_params, : Bad Request (HTTP 400).
Request failed [ERROR]. Retrying in 1 seconds...
Auto-refreshing stale OAuth token.
Error in refresh_oauth2.0(self$endpoint, self$app, self$credentials, self$params$user_params,  : 
  Bad Request (HTTP 400).

from adobeanalyticsr.

benrwoodard avatar benrwoodard commented on August 20, 2024

This may be a result of the new(er) profiles that Adobe has been luanching. If you are able to use the function "get_me()" then make sure the company id/name is showing that you are wanting to pull data from. If it does pull back information but your company id/name is not showing then you may be experiencing the new profile issue that we have seen internally in our company as well. This requires you to log out of adobe and then attempt to re-auth by signing back in and choosing the correct profile.
If, on the other hand, you are not able to pull information using 'get_me()' then you may have an expired 'aa.oauth' file and have to manually delete it and then re-authorize. The Adobe API does not allow us to refresh the oauth token so we need to re-auth manually every 24 hours.
Finally, if you are able to pull information using 'get_me()' and the company name/id is showing but you are still not able to pull data from the report suite then it may be a permissions issue and you would need to research to make sure you have the permission access level needed to use the API.

from adobeanalyticsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.