Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8445165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:35:29+00:00 2026-06-10T09:35:29+00:00

I’m receiving an error sometimes for what should be a valid request as 400

  • 0

I’m receiving an error sometimes for what should be a valid request as “400 OK” when I PUT some arguments to a URL.

The same URL and arguments will work 99% of the time, but I’m seeing errors crop up in our logs.

Is that an obscure thing that can happen due to some factors or is something specific to my app causing the mish-mash of strange headers? I’m guessing it’s the latter if there’s no answers to the former 🙂

UPDATE

For the comments, “it” is a relatively simple RESTful API that was written. Now it’s almost always giving back the right headers like 400 and body of error or 200 with body of ok. When a bad header makes it to the web client, the web client is pinging a reporting URL with the message it got so we can differentiate API errors between our web app and mobile apps. As far as we know there is no combintation of code that would make this “400 OK” hell. But seeing as it seems impossible for that to happen outside of our code messing up, I’m going to take a deeper look.

UPDATE 2

Okay I’ve delved deeper into our framework than I have in a long time and spoke with some devs.

It returns the information via the AJAX call to the API to the browser.

The browser detects a “400 OK” and sends it back to our server, where we are getting this strange report. No one has seen this happen with their eyes, but the logs say it’s happening.

There is literally zero code in our codebase that would return 400 OK since the only 400 in our HTTP header handlers are “400 bad request”

I’m wondering now if there’s some browser/jquery/ajax bug I’ve stumbled into.

UPDATE 3 (because you can’t have too much information)

I checked how the browser sees what’s wrong. A callback is fired on failure as reported by jQuery $.ajax. We then have code like this:

xhr.always(function() {
  var request = [ this.type, this.url, this.data ].join(' '),
      response = [ xhr.status, xhr.statusText, xhr.responseText ].join(' ');

  $.ajax({ 
    url   : REPORTING_URL,
    type  : 'POST', 
    data : { request : request, response : response }
  });
});

And we know this works “most” of the time because we also received “400 error” responses from these ajax calls

UPDATE 4

I just noticed that literally all the errors came from user agent:

Mozilla webkit etc...... AdobeAIR/1.5.3 which is a very old version

Our AIR app just has an iframe of our web app. I can only imagine what’s happening there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:35:31+00:00Added an answer on June 10, 2026 at 9:35 am

    After @pst’s great answer which I marked as the official answer, I found a more depressing answer that was 100% true for my case.

    This header was coming via using a website in an iframe for users of Adobe AIR 1.5.3.

    After force-upgrading all of our AIR users it went away so it’s safe to assume this was a bug of their header reporting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have a view passing on information from a database: def serve_article(request, id): served_article
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.