Skip to main content
Question

Expected HTTP Error: 400 Bad Request (and additional error happened during JSON parse: Response is not JSON) PHP live server


Hi,

I have no idea how to resolve this. Please help.
Basically, it works on local. But on live server, it's giving me error.

This sending fax using PHP SDK

Thanks.

Attachments

code.png

test-live.png

localtest.png




2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2313 replies
  • August 6, 2021

I have no idea what you do. It's weird that your code is in PHP, and the test results you shared were in Postman. And why sharing code in .png image?


  • Author
  • New Participant
  • 1 reply
  • August 7, 2021

Hi,

I'm calling the API through Postman but the backend is coded in php.

The site doesnt allow me to upload txt or php file that's why I upload image instead.

Can you tell me what's wrong?

I simply follow the codebase here:

https://github.com/ringcentral/ringcentral-php/blob/master/demo/fax.php

and here:

https://developers.ringcentral.com/guide/messaging/fax/sending-faxes


TLDR:
It works on local. Not working live with that error in the title.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings