Iron.io 设置在 `iron register` 步骤上获取 404 Not Found
Iron.io set up getting 404 Not Found on `iron register` step
我正在阅读此处的 iron.io 入门指南:http://dev.iron.io/worker/getting_started/
我在这一步:
Push it to Docker Hub and register your image with Iron:
docker push USERNAME/hello:0.0.1
iron register USERNAME/hello:0.0.1
docker push
命令按预期工作,但是当我 运行 iron register USERNAME/hello:0.0.1
时,我得到以下响应:
-----> Configuring client
Project '' with id='5af78**********9198850e'
-----> Registering worker 'USERNAME/hello:0.0.1'
404 Not Found: Endpoint not found
为什么返回 404 Not Found?
我注意到命令行响应中没有写项目名称,我想这可能是相关的,但我不知道在哪里更新它。
您似乎没有配置凭据。
Getting started
页面上有一个 Before you begin
部分 link 到 Setup your Iron.io credentials
您需要有适当的 iron.json
文件或设置环境变量来设置项目和令牌。
Note: 404 Not Found: Endpoint not found
and Project ''
comes in case of invalid project_id in the iron.json file. Make sure that your project_id correct.
我正在阅读此处的 iron.io 入门指南:http://dev.iron.io/worker/getting_started/
我在这一步:
Push it to Docker Hub and register your image with Iron:
docker push USERNAME/hello:0.0.1
iron register USERNAME/hello:0.0.1
docker push
命令按预期工作,但是当我 运行 iron register USERNAME/hello:0.0.1
时,我得到以下响应:
-----> Configuring client
Project '' with id='5af78**********9198850e'
-----> Registering worker 'USERNAME/hello:0.0.1'
404 Not Found: Endpoint not found
为什么返回 404 Not Found?
我注意到命令行响应中没有写项目名称,我想这可能是相关的,但我不知道在哪里更新它。
您似乎没有配置凭据。
Getting started
页面上有一个 Before you begin
部分 link 到 Setup your Iron.io credentials
您需要有适当的 iron.json
文件或设置环境变量来设置项目和令牌。
Note:
404 Not Found: Endpoint not found
andProject ''
comes in case of invalid project_id in the iron.json file. Make sure that your project_id correct.