我正在尝试遵循快速入门指南,并且已经走到了这一步。这应该是一个简单的步骤,我不认为我搞砸了。
我得到了这个错误:
HttpError Traceback (most recent call last)
<ipython-input-6-bcfca1a6c4ac> in <module>()
17 signupUrlName=signup_url['name'],
18 enterpriseToken=enterprise_token,
---> 19 body={}
20 ).execute()
21
1 frames
/usr/local/lib/python3.6/dist-packages/googleapiclient/http.py in execute(self, http, num_retries)
896 callback(resp)
897 if resp.status >= 300:
--> 898 raise HttpError(resp, content, uri=self.uri)
899 return self.postproc(resp, content)
900
HttpError: <HttpError 400 when requesting https://androidmanagement.googleapis.com/v1/enterprises?projectId=ssapptest&signupUrlName=signupUrls%2FCfd59b86982be3c7c&enterpriseToken=EAJmqckwEH8mD3tZnKKqQmCqL_qXuhR15BbAuA1QJP-Sl9EwawDekO-MXBWe7xFzPI8nqynhjQ3o7ympqJpSrIQzaKWPeKLD4R4nqE9BPI1JvkmB9fhE80P4&alt=json returned "domain: "androidenterprise.ApiErrors"
code: "INVALID_COMPLETION_TOKEN"
argument: "Cfd59b86982be3c7c"
debug_info: "code: INVALID_COMPLETION_TOKEN\nhttp status: 400\narguments: [Cfd59b86982be3c7c]\ncause: com.google.wireless.android.vending.enterprise.common.exceptions.InvalidCompletionTokenException: EnterpriseException{httpStatus=400, code=androidenterprise.ApiErrors.INVALID_COMPLETION_TOKEN, arguments=[Cfd59b86982be3c7c]}\n\tat com.google.wireless.android.vending.enterprise.business.LaForgeServiceImpl.completeSignup(LaForgeServiceImpl.java:648)\n\tat com.google.wireless.android.vending.enterprise.actions.mdmapi.EnterpriseActions$CompleteSignupAction.execute(EnterpriseActions.java:222)\n\tat com.google.apps.framework.request.impl.InterceptorInvocation$Rpc.beforeProceed(InterceptorInvocation.java:147)\n\tat com.google.apps.framework.request.impl.InterceptorInvocation.proceed(InterceptorInvocation.java:158)\n\tat com.google.apps.framework.request.impl.RpcDispatcher.proceed(RpcDispatcher.java:136)\n\tat com.google.apps.framework.request.impl.RpcDispatcher.proceed(RpcDispatcher.java:42)\n\tat com.google.apps.framework.request.impl.AbstractDispatcher.doExecuteChain(AbstractDispatcher.java:464)\n\tat com.google.apps.framework.request.impl.AbstractDispatcher.execute(AbstractDispatcher.java:303)\n\tat com.google.apps.framework.request.impl.AbstractDispatcher.executeAsync(AbstractDispatcher.java:226)\n\tat com.google.apps.framework.request.impl.RpcDispatcher.handleRpc(RpcDispatcher.java:126)\n\tat com.google.apps.framework.request.impl.RpcScopedHandlerFactoryImpl.run(RpcScopedHand...我可以看到它是一个无效的完成令牌,但我不明白它是从哪里来的。
为了解决这个问题,我尝试在谷歌上搜索它,并仔细阅读了Android管理API文档,但我没有发现任何与此相关的错误。
我试着联系Google Suites的技术支持,希望他们能提供一些见解,但他们让我去找Android Enterprise,在那里我找不到联系方式。
有没有人知道是什么导致了这个问题,或者如何修复它?
感谢您的帮助
发布于 2020-08-06 03:45:32
它才刚刚开始工作。我唯一能想到的就是我用鼠标而不是Ctrl+C来复制和粘贴它。
https://stackoverflow.com/questions/63272341
复制相似问题