microsoft / wopi-validator-core

A tool to test and validate server-side WOPI implementations
MIT License
42 stars 33 forks source link

JsonContentValidator: JsonReaderException thrown while parsing JSON #96

Closed Vikcen closed 1 year ago

Vikcen commented 3 years ago

Hello.

I'm validating my endpoints running like this:

docker run -it --rm tylerbutler/wopi-validator -- -w http://192.168.1.38:8081/wopi/files/80ffd1eb-a6b8-4ec2-adc1-a58b23815eaf -t testToken1 -l 36000000 

Ant it is showing the following log in alll the tests:

CheckFileInfo, response code: 200 OK
      JsonContentValidator: JsonReaderException thrown while parsing JSON. Are you sure the response is JSON?

When i run in my browser that WOPIsrc: http://192.168.1.38:8081/wopi/files/80ffd1eb-a6b8-4ec2-adc1-a58b23815eaf this return in the browser this string:

{"OwnerId":"admin","Version":"1.2","Size":"5688","UserId":"admin","BaseFileName":"20200710_1.pdf"}`

And that string is a valid format json.

What could be the problem?

Thank you in advance, and greetings.

ndench commented 2 years ago

I'm having this same error. @Vikcen I realise this is quite an old issue but did you ever find a cause or solution?

v-stefansi commented 1 year ago

We are in the process of closing WOPI Validator GitHub. If you still need help with this issue, please reach out to the CSPP partner Yammer channel or contact csppteam@microsoft.com.