iron-io / dockerworker

The new IronWorker workflow examples. Test locally, then upload and start queuing jobs!
http://www.iron.io
232 stars 47 forks source link

Error when curling the webhook url #38

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

I get the following error when I curl the webhook endpoint for my worker:

{"msg":"Token required for authentication"}

Here is the curl command:

curl -XPOST https://worker-aws-us-east-1.iron.io/2/projects/{$My_Project}/tasks/webhook?code_name=HelloWorkerPython&oauth={$My_Token}

Anything else I need to do?

thanks!

rdallman commented 8 years ago

curl utility forces escaping of query parameters. recommend either using Authorization: OAuth $token header or \?oauth\=$token. closing this since it's not relevant to dockerworker, but feel free to follow up here.

ghost commented 8 years ago

thanks for the help. worked!