Skip to content

Commit

Permalink
Use curl -L to have trigger_binder follow URL redirect (#17)
Browse files Browse the repository at this point in the history
BinderHub now operates as a Binder Federation and so there is no
guarantee where the Binder build will take place. As a result, the
Binder trigger must follow any redirect of the URL.

c.f.
https://discourse.jupyter.org/t/problem-triggering-binder-build-through-api-endpoint/1440
  • Loading branch information
matthewfeickert authored Jun 22, 2019
1 parent 51295b3 commit 9964d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binder/trigger_binder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function trigger_binder() {
local URL="${1}"

curl --connect-timeout 10 --max-time 30 "${URL}"
curl -L --connect-timeout 10 --max-time 30 "${URL}"
curl_return=$?

# Return code 28 is when the --max-time is reached
Expand Down

0 comments on commit 9964d0d

Please sign in to comment.