Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Dev > Pro Tools Scripting SDK Toolkit

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-03-2023, 04:01 AM
swappl swappl is offline
Member
 
Join Date: Feb 2023
Location: Cologne, Germany
Posts: 7
Default 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
Reply With Quote
  #2  
Old 02-03-2023, 05:52 AM
swappl swappl is offline
Member
 
Join Date: Feb 2023
Location: Cologne, Germany
Posts: 7
Default 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???

Last edited by swappl; 02-03-2023 at 06:13 AM.
Reply With Quote
  #3  
Old 02-03-2023, 12:52 PM
JamieHardt JamieHardt is offline
Member
 
Join Date: Jan 2023
Location: Los Angeles, CA
Posts: 54
Default 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.
__________________
___
Jamie Hardt MPSE
Pro Tools Ultimate 2022.12.0
Mac OS X 12.6.2
Mac Pro (Late 2013)
Reply With Quote
  #4  
Old 02-21-2023, 04:37 PM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default 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
__________________
Rob Majors
Avid Software Engineering
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro Tools 10 software - Authentication Error imranlk Windows 3 06-18-2012 08:37 PM
Why? (request for future versions) *DELETED* c-tone Pro Tools TDM Systems (Mac) 11 08-14-2007 09:20 AM
Protools refused to load. QuietLikeaCrow Pro Tools M-Powered (Mac) 1 08-08-2006 10:56 PM
D-Fi 7.0 : authorisation refused after update dolby 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 5 11-20-2005 03:12 AM


All times are GMT -7. The time now is 04:27 AM.


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