gpt4 book ai didi

java - Amazon Turk 命令行工具 : Invalid Configuration for Port error

转载 作者:太空宇宙 更新时间:2023-11-04 13:19:34 25 4
gpt4 key购买 nike

我正在尝试设置 Amazon Turk 命令行工具。我遵循了所有必需的步骤(即,添加了一个系统变量 JAVA_HOME 设置为 C:\Program Files (x86)\Java\jre7,并将属性文件 URL 从 http 更改为 https)。但是,当我尝试运行任何命令时,出现以下错误。有人对如何解决这个问题有任何建议吗?谢谢!

C:\aws-mturk-clt-1.3.1\bin>getbalance
An error occurred: Invalid configuration for port
java.lang.RuntimeException: Invalid configuration for port
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.<init>(Requester
ServiceRaw.java:240)
at com.amazonaws.mturk.service.axis.RequesterService.<init>(RequesterSer
vice.java:241)
at com.amazonaws.mturk.cmd.AbstractCmd.initService(AbstractCmd.java:119)

at com.amazonaws.mturk.cmd.AbstractCmd.run(AbstractCmd.java:143)
at com.amazonaws.mturk.cmd.GetBalance.main(GetBalance.java:28)
Caused by: java.lang.IllegalStateException: Invalid configuration for locator
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.getPort(Requeste
rServiceRaw.java:269)
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.<init>(Requester
ServiceRaw.java:230)
... 4 more
Caused by: javax.xml.rpc.ServiceException: java.net.MalformedURLException: no pr
otocol: service_url=https://mechanicalturk.amazonaws.com/?Service=AWSMechanicalT
urkRequester
at com.amazonaws.mturk.requester.AWSMechanicalTurkRequesterLocator.getAW
SMechanicalTurkRequesterPort(Unknown Source)
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.getPort(Requeste
rServiceRaw.java:263)
... 5 more

C:\aws-mturk-clt-1.3.1\bin>

最佳答案

当我没有提供 AccessKeyIdSecretAccessKey 时,出现了类似的错误。尝试填写它们。

关于java - Amazon Turk 命令行工具 : Invalid Configuration for Port error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33215679/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com