RideTypes API call failing


#1

Hi guys,

I am trying to integrate Lyft SDK in our apps . API calls are failing with error code 500.

//This is the API request
https://api.lyft.com/v1/ridetypes?lat=37.7763&lng=122.3918
▿ url : Optional
▿ some : https://api.lyft.com/v1/ridetypes?lat=37.7763&lng=122.3918

  • cachePolicy : 0
  • timeoutInterval : 60.0
  • mainDocumentURL : nil
  • networkServiceType : __ObjC.NSURLRequest.NetworkServiceType
  • allowsCellularAccess : true
    ▿ httpMethod : Optional
    • some : "GET"
      ▿ allHTTPHeaderFields : Optional<Dictionary<String, String>>
      ▿ some : 2 elements
      ▿ 0 : 2 elements
      • .0 : “lyft-mobile-sdk:ios::1.0.3”
      • .1 : "User-Agent"
        ▿ 1 : 2 elements
      • .0 : “Authorization”
      • .1 : “Bearer …”
  • httpBody : nil
  • httpBodyStream : nil
  • httpShouldHandleCookies : true
  • httpShouldUsePipelining : false

I have one more question , while configuring do we have to use the token which is generated in the dashboard as “Client token”?

Please help me in resolving this problem.

Note – I have signed up to the developer account with the Indian number authentication.


#2

Yes, you should be passing the Client Token (not Client Secret).

Could you add print(error) after this line and post the contents of the console here?


#3

It says this

LyftSDK.ResponseType.internalError

Regards,
Vinay


#4

I’ve made a change that I think will fix this issue – please update the SDK to v1.0.5 :+1:


#5