Showing results for 
Search instead for 
Did you mean: 

Error reading JToken from JsonReader. Path ''

I'm setting up a new service to handle payments (replacing an old one) with Using the examples posted on their github page I'm getting a strange error back.

{"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"Error reading JToken from JsonReader. Path '', line 0, position 0."}]}}

I attempted to check my TLS version and got back TLS v1.3. Due to this I thought it was due to having to new of a TLS version so forced the TLS version on Apache to TLS 1.2 for the site and even forced TLS 1.2 in CURL in both requests. 

    curl_setopt($ch, CURLOPT_SSLVERSION, 6); 

 These both did not work. I'm unsure how to move forward on this and would appreciate any advice any of you can give.


I encountered a bug when mixing the GitHub docs with those posted here: 
If you have a sandbox account, you can provide your credentials to the virtual terminal, which will  pre-populate the JSON examples for you, using your credentials.

Trusted Contributor