Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Uber History Scope #266

Open
aparande opened this issue Nov 28, 2019 · 0 comments
Open

Accessing Uber History Scope #266

aparande opened this issue Nov 28, 2019 · 0 comments

Comments

@aparande
Copy link

I am trying to access the Rides API (specifically the history endpoint). However, when I specify the scope, I cannot log-in via SSO because an exception is raised saying "Your app is not authorized for the requested scopes"

loginManager = LoginManager(loginType: .native)
loginButton = LoginButton(frame: CGRect.zero, scopes: [.history], loginManager: loginManager)

If I pass an empty list for scopes, then I can login via SSO, but when I try and fetch my history, I get an internal server error:

let ridesClient = RidesClient()
ridesClient.fetchTripHistory { (history, response) in
        guard let history = history?.history else {
                print("\(response.error?.title) - Code: \(response.error?.code)") // prints 'Optional("We have experienced a problem.") - Code: Optional("internal_server_error")'
                return
        }
            
        print("Loaded \(history.count) rides")
}

I assume this is because my application is not authorized to access these scopes, but I see no option to authorize it in the developer console.

Screen Shot 2019-11-27 at 6 42 24 PM

I have set the redirect URI and the privacy policy URL. As a single developer, I do not have a Uber Business representative or Uber point of contact, and I can't find any information on how to get one. It seems other users have been having this issue as well.

https://twitter.com/batch08/status/1195433657239891968

What is the resolution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant