No JSON object could be decoded

I’m trying to connect ERPNext with woocommerce and sync the product and its variant with ERPNext.

But showing me error of “No JSON object could be decoded”.

Also i got below error in console

WebSocket connection to 'wss://xxx.xxx.com/socket.io/?EIO=3&transport=websocket&sid=xxxxxxxxxx failed: Invalid frame header

Also when i view error gives me ‘str’ object has no attribute ‘get’ error

I stuck here, Please help me out in this.