Jump to content

Recommended Posts

Posted

Hi,

I am on Tommy server and my username is mbo. I have an error when I run the following command in git deploy actions

curl "https://mbo.helioho.st/api/version"

image.png.8abb25a115d65a3b87f6595b0cbf4492.png

Here is the error

image.png.a334c4506ed29fd735ad57d10f1c2e87.png

I tried with wget

wget "https://mbo.helioho.st/api/version"

image.png.eede817aa339a85d539348c2e9dcd562.png

But I have the following error

image.png.441180dbfcece1d79319c92efd70d79e.png

Posted

It looks like wget is most of the way there but is choking on SSL for some reason. I just turned off the Plesk SSL redirect on your account. Give it 2 hours for Apache to restart, then try editing the wget commands to use plain HTTP and run them again.

If you want to enforce SSL afterwards for the actual app, you can use .htaccess to do it (or the app itself can enforce it), and just add exclusions for the endpoints needed by the build process.

Another possibility I've seen before is that the error is erroneous and caused by the mime type of the returned response (in your case, application/json) instead of the expected text/plain or text/html.

Posted

Hi @wolstech thank you for the fix, it solves my issue. Before creating the post I tried to disable Plesk SSL redirect, I didn't know I had to wait 2 hours so it didn't work, but now everything is fine.

Concerning your remark concerning the mime type, I pretty sure that it is not related to my problem because I had the issue for a cgi script that returns a response with text/plain mime type.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...