Avid Pro Audio Community

Avid Pro Audio Community (https://duc.avid.com/index.php)
-   Pro Tools Scripting SDK Toolkit (https://duc.avid.com/forumdisplay.php?f=166)
-   -   Authentication error 'Request refused. SDK versions mismatched.' (https://duc.avid.com/showthread.php?t=423385)

swappl 02-03-2023 04:01 AM

Authentication error 'Request refused. SDK versions mismatched.'
 
Hi there,

I'm trying to connect to the API, but getting the follwoing error message:


Code:

{
...
"response_error_json": "Request refused. SDK versions mismatched."
...
}


What does this mean?

Thanks,
Steffen

swappl 02-03-2023 05:52 AM

Re: Authentication error 'Request refused. SDK versions mismatched.'
 
I found out what's missing...
The version attribute in the header!

When sending the following:

Code:

{
  "header": {
    "command": 60,
    "version": 1
  },
  "response_body_json": "{\"auth_string\":\"<my-auth-key-json>\"}"
}

with my-auth-key-json like this (escaped, of cause):

{"schema":{"version":0},"company":{"name":"<NAM E-HERE>","x509_certificate_chain":["<BASE64-HERE>"]}}

I receive an other error:

Code:

{
  "header": {
    "task_id": "bb74154b-054f-654b-8b80-6f1f6eb9c257",
    "command": 60,
    "status": 4,
    "progress": 0
  },
  "response_body_json": "",
  "response_error_json": "\n{\n  \"command_error_message\":\"auth_string\",\n  \"is_warning\":false,\n  \"command_error_type\":\"PT_UnknownError\"\n}\n"
}

So, what's an example of a working AuthorizeConnectionRequest???

JamieHardt 02-03-2023 12:52 PM

Re: Authentication error 'Request refused. SDK versions mismatched.'
 
How are you serializing the JSON request? You have to make sure the auth_string value is all escaped properly, and your protobuf JSON mapping is including default values for fields, preserving protobuf field names and ignorning unknown fields.

rmajors 02-21-2023 04:37 PM

Re: Authentication error 'Request refused. SDK versions mismatched.'
 
Hi swappl,


Have you been able to work through this issue? Please let us know if you need any assistance successfully establishing a connection to Pro Tools.


Best,
Rob


All times are GMT -7. The time now is 11:42 AM.

Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com