Avatar

Authenticate - method not found?

0

Up until a few weeks ago Authenticate was working just fine. I'm using both Python and C++, and neither work. Here's the json:

 {'params': {'userName': 'XXXX@XXXX.XXX', 'password': 'XXXXXXX', 'global': True, 'database': 'XXXXXXX'}, 'method': 'Authenticate'} {'Content-type': 'application/json', 'Accept': 'text/plain'}

And the response:

{u'error': {u'message': u'The method "Authenticate" could not be found. Verify the method name and ensure all method parameters are included.', u'errors': [{u'stackTrace': u'   at Geotab.Checkmate.Web.DataStoreGetService.ProcessRequest(String methodName, Dictionary`2 parameters, Action`2 parametersJSONToTokens, AsyncCallback asyncCallback, IProfiler& profile, Credentials& credentials) in c:\\ProgramData\\GEOTAB\\Checkmate\\BuildServer\\Checkmate 5.6.1 Unit Tests\\WorkingDirectory\\Checkmate\\Geotab\\Checkmate\\Web\\DataStoreGetService.cs:line 640\r\n   at Geotab.Checkmate.Web.DataStoreGetService.ProcessRequest(HttpResponse response, Dictionary`2 parameters, String callback, String method, Action`2 parametersJSONToTokens, AsyncCallback asyncCallback) in c:\\ProgramData\\GEOTAB\\Checkmate\\BuildServer\\Checkmate 5.6.1 Unit Tests\\WorkingDirectory\\Checkmate\\Geotab\\Checkmate\\Web\\DataStoreGetService.cs:line 490', u'message': u'The method "Authenticate" could not be found. Verify the method name and ensure all method parameters are included.', u'name': u'MissingMethodException'}], u'name': u'JSONRPCError'}}

I'm using my18.geotab.com. Thanks!

 

John

Please sign in to leave a comment.

7 comments

0
Avatar

Hi John,

There's a few things that could be the problem before I can say for sure could you let us know what version of MyGeotab you database is?
If you login to my.geotab.com it's under the "About" link on the main nav.

Also, could you post the request url with end point you are using to authenticate against?

Thanks,

Steve

Steve Hansen 0 votes
0
Avatar

Great, thanks John that helps a lot.

There's a few potential issues I can see:

  • First thing to note is that all api requests are made apiv1 (https://<myserver>/apiv1) end point now. The end point /Geotab/Checkmate/Web/DataStoreGetService.ashx has be deprecated for all databases running version 5.7+.
  • Second is that authentication requests should be made to the root fed server (my.geotab.com in your case) as your database could be moved around the federation due to maintenance/load balancing, etc.

There's a great explination of the authentication process available here: https://my.geotab.com/sdk/default.html#/concepts under Authentication.

Thanks,

Steve

 

Steve Hansen 0 votes
0
Avatar

Ah, yes - I saw that before. Is there a running changelog somewhere, and is it possible to stick at a particular API version until the changes are implemented at our end?

Btw - this may be coincidental, but I'm getting a DBUnavailable and going to the server right now redirects to my7.geotab.com which doesn't seem to be up.

John 0 votes
0
Avatar

Hey John,

Best thing to do would be to contact your reseller (if you are a reseller, contact your sales rep) and they can better inform you of any options you might have as to staying on a older version until your code is updated. Unfortunately, we don't have a change log for APIv1.

I'm not aware of any outages yesterday. If the authentication request is failing for you, a good test would be to try and login through my.geotab.com (in the browser). If it fails there as well, your reseller should be able to work with you to get sorted, creating a support case with us if necessary.

Thanks,

Steve

Steve Hansen 0 votes