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

  • SEARCH
  • Home
  • 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 8549017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:37:46+00:00 2026-06-11T13:37:46+00:00

We are creating a web api application. In one of our API’s if there

  • 0

We are creating a web api application. In one of our API’s if there are any validation errors, we are returning the error message in JSONP format. In the API Request URL user adds a query string parameter ?jsoncallback=xxxxxxxxxx like this.

On validation failure we are throwing a 400 bad request JSONP with response message in the below format:

xxxxxxxxxx({"error","error message"})

It is working good in all the environments, where there is no nginx. In our staging environment we have nginx configured.

Here it is modifying the output as below:

badrequest{"error","error message"})

Because of this our front end application is unable to read the response message.

Could you please let me know, what configuration setting of nginx could cause this problem?

Thanks in Advance

Venkat.

  • 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-11T13:37:47+00:00Added an answer on June 11, 2026 at 1:37 pm

    Actually the problem is not due to nginx.

    It is due to IIS 7.5 in our staging server which is causing the problem.

    Below configuration change in web.config has fixed it.

    <httpErrors errorMode="Detailed" />
    

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

Sidebar

Related Questions

Java fb API I am creating facebook web application, to create even following is
I’m creating a web application that uses the SoundCloud API to stream tracks of
When creating a new web application in Google for Google 'login', there is an
I'm creating an application that has a ASP.NET Web API interface using the Self
I am creating a web api using asp.net mvc4 and the response output is
I'm creating v2 of an existing RESTful web api. The responses are JSON lists
I am creating a ASP.Net Web API to expose an existing database for use
I'm creating REST service using ASP.NET Web API. How can I return 401 status
I am creating a web app that uses the Google Maps API to display
I am creating a REST Web Service using Java and Jersey API. The basic

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.