id为* id *的消息不存在 [英] No message exists with the id *id*

查看:88
本文介绍了id为* id *的消息不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过mandrill API列出已发送的电子邮件.我可以通过调用 https://mandrillapp.com/api/1.0/messages/将它们列出来search.json .这给了我一个列表,其中包含一堆已发送的消息以及一个id字段.然后,我在调用 https://mandrillapp.com/api/1.0/messages时使用此ID字段/content.json (需要了解一些内容).它给了我以下答复:

I'm trying to list sent emails via the mandrill API. I can list them fine by calling https://mandrillapp.com/api/1.0/messages/search.json. This gives me a list that contains a bunch of sent messages along withg an id field. I then use this ID field when calling https://mandrillapp.com/api/1.0/messages/content.json (need to know some of the content). It gives me the following response:

{ 状态:错误" 代码:11 名称:"Unknown_Message" 消息:不存在ID为" id转到此处"的消息" }

{ status: "error" code: 11 name: "Unknown_Message" message: "No message exists with the id 'id goes here'" }

这是我从列表中粘贴ID的时候.另外,我已经尝试使用最近发送的电子邮件和几个月前发送的电子邮件.总是一样.

This is when I'm pasting IDs from the list. Also, I've tried it with both recently sent emails and those that were sent months ago. It's always the same.

我在做什么错了?

非常感谢!

推荐答案

取决于您何时发出消息/内容请求,内容可能尚未被编入索引,或者超出了时间范围多长时间他们存储该信息.

Depending on when you're making the messages/content request, the content may not be indexed just yet, or might fall outside of the time range for how long they store that info.

例如,在发送电子邮件之后,可能需要一些时间才能将内容编入索引.因此,如果您在几分钟内发送,搜索然后调用消息/内容,则可能会收到该错误.

For example, right after you send the email it probably takes a bit for the content to get indexed. So if you're sending, searching, then calling messages/content in the span of a few minutes, you may get that error.

And message content is only stored for 24 hours by default unless you pay for more, so if you're calling messages/search after the 24 hour period is up, you'll get the same error.

这篇关于id为* id *的消息不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆