mbo Posted January 1 Posted January 1 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" Here is the error I tried with wget wget "https://mbo.helioho.st/api/version" But I have the following error
wolstech Posted January 1 Posted January 1 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.
mbo Posted January 3 Author Posted January 3 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. 1
wolstech Posted January 3 Posted January 3 Glad to see you got it working For others reading, mbo posted the full solution for running git deploy actions in his other topic on this issue: https://helionet.org/index/topic/63231-run-npm-script-in-git-deploy-actions/#comment-285227 Please let us know if you need anything else 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now