最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Getting "Request too long" response in SendGrid "v3marketingcontacts" API - Stack Overflow

programmeradmin8浏览0评论

We are trying to add contacts to SendGrid using "v3/marketing/contacts" API and we are using client.PutAsync. But we are getting response "Request too long". We are sending more than 20000 records (less than 30000) and size is around 5 MB. According to SendGrid documentation we can send 30000 contacts or 6 MB of data whichever is lesser. Now my question is :

  1. Why we are getting "Request too long" response?
  2. If we call this API, do we need to send all the records everytime. If a records is already present in SendGrid and in next call if we don't send that record again it is getting deleted. Is it the correct behaviour? We are sending contacts to List. Below is the piece of code :

var rawResponse = await client.PutAsync("v3/marketing/contacts", body); var rawContent = await rawResponse.Content.ReadAsStringAsync();

This rawContent is showing "request too long"

发布评论

评论列表(0)

  1. 暂无评论