0

400 Bad Request Error

We are receiving 400 Bad Request error when calling https://api.segment.io/v1/import

Unfortunately it does not provide any additional details

Error notification received:

2018-12-10 07:54:13.013 PST{EST} ERROR [com.strongmail.segmentlogloader.processor.LogQueueConsumer$1.print(LogQueueConsumer.java:83)] - Mon Dec 10 07:54:13 PST 2018    Could not upload batch 873. Giving up.[Ljava.lang.StackTraceElement;@b6ab187400 Bad Request

 

Error Log Message:

12/10 07:53:04.740 PST WARN  com.strongmail.segmentlogloader.processor.LogQueueConsumer  - ERRORUploadedMessage TrackMessage{type=track, messageId=299082d5-8d0f-4c6a-b74b-8f2499bc02fd, timestamp=Sun Dec 09 02:31:48 PST 2018, context={userAgent=Mozilla/5.0 (Macintosh; PPC Mac OS X 10.11; rv:48.0) Gecko/20100101 Firefox/48.0, ip=34.218.255.1, traits={email=smb@saramariebrennerrealtor.com}}, anonymousId=null, userId=1_1551, integrations={}, event=Email Link Clicked, properties={emailId=684, campaignId=85348, campaignName=daily hedlines monday october 22 2018 - Agent-Split_2, mailingSubject=Adios! 21 signs it’s time to fire that energy-consuming client, linkId=2024, linkURL=https://www.inman.com/author/pat-hiban/?utm_source=dailyheadlines&utm_medium=email&utm_campaign=localnewsletter&utm_content=700638_authorlink_8_}} retrofit.RetrofitError: 400 Bad Request

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi Ham,

    Our API only returns 400 errors if the request is too large or if you're sending an invalid JSON. It looks like in your case this is an issue with the size of the requests. We have a maximum of 15kb per call. 

    I'd recommend validating the size of your calls and ensuring you're complying with the max restriction. Fixing that should fix the errors.

    Hope this helps!

    Best,

    Emilio Gomez

    Reply Upvote