【问题标题】:codename-one.appspot.com 500 error when attempting to migrate old device id尝试迁移旧设备 ID 时出现 codename-one.appspot.com 500 错误
【发布时间】:2017-11-07 21:41:07
【问题描述】:

当我执行 curl -i "https://codename-one.appspot.com/token?m=id&i=d116845c6825ac151489ab33725285e5f48b3e0225285e5f48b3e02"

结果是:

HTTP/1.1 500 Internal Server Error
X-Cloud-Trace-Context: 3f022af7dc49c7650be2fa82421a8511
Date: Tue, 06 Jun 2017 18:25:36 GMT
Content-Type: text/html; charset=UTF-8
Server: Google Frontend
Content-Length: 323
Alt-Svc: quic=":443"; ma=2592000; v="38,37,36,35"


<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>Please try again in 30 seconds.</h2>
<h2></h2>
</body></html>

https://www.codenameone.com/blog/new-push-servers.html 运行示例(有六个 9)时似乎会发生这种情况

如何判断是否存在旧设备 ID,或者这是否是服务器的临时错误?

【问题讨论】:

    标签: push-notification codenameone


    【解决方案1】:

    该 ID 不正确,因为旧设备 ID 是纯数字的,并且您的号码同时包含 de 字符

    【讨论】:

    • 这就是问题所在。由于某种原因,DeviceID 没有以 cn1-ios 或 cn1-gcm 为前缀。推送服务器上是否有任何文档?现在我们收到:HTTP 200 带有 "status":"inactive"
    • 我们仍在为 ios 设备收到 status=inactive。是否可以在不尝试发送推送通知的情况下测试非活动密钥?
    • 我认为您使用此 API 不正确。此 API 用于转换旧的旧推送 ID,我认为您正在尝试“转换”不必要的注册回调参数
    猜你喜欢
    • 1970-01-01
    • 2015-07-10
    • 1970-01-01
    • 1970-01-01
    • 2019-02-14
    • 2021-04-09
    • 2013-11-28
    • 2021-07-29
    • 2014-11-30
    相关资源
    最近更新 更多