jbrooksuk / laravel-forge-action

Deploy your application to Laravel Forge with GitHub Actions.
https://james.brooks.page
MIT License
81 stars 5 forks source link

Deploy via API fails #20

Closed webfolkcreative closed 2 years ago

webfolkcreative commented 2 years ago

Hey there!

I'm unable to get your Deploy via API example working. I'm not sure if something has changed in Forge, but the Deployment Trigger URL example works perfectly fine. Any ideas on why it might be failing? All secrets have been created for testing, and it looks like the job is grabbing them properly. Error thrown is:

curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
jbrooksuk commented 2 years ago

Thanks! Can you try using v1.0.3? https://github.com/jbrooksuk/laravel-forge-action/releases/tag/v1.0.3

webfolkcreative commented 2 years ago

@jbrooksuk Just tried with 1.0.3 and unfortunately I am still receiving the same error as before.

webfolkcreative commented 2 years ago

After some reading, I think it's related to CURL using HTTP/2, some people have fixed other error messages by adding --http1.1 to the CURL command.

Update I tested locally by adding --http1.1 \ above --request 'Post' \ in deploy_with_api() and it seems to be working now.