Skip to content

Accessing Uber History Scope #266

Description

@aparande

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions