Http error 502 when hitting API from PyCharm - apache

I am using Apache Tomcat 9 to run documentum rest APIs from Windows server but whenever I am hitting the API from PyCharm it is giving the 502 error (http response code) and the text is:
**The server you are requesting is not responding. This is not a proxy issue. To solve the problem contact server administrator. Your sending address on the internet is Ip address.
The same APIs are running fine from POSTMAN.
API: http://localhost:8080/dctm-rest/repositories
Please help and suggest how to resolve this http error of 502 when hitting API from PyCharm.

Related

Passing / and -- in url it's showing 403 Forbidden Error

When we request to google or any 3rd party API, in this return url we getting this type of code.
?code=4/rAERtRkfXf--
The server doesn't accept this type code and it's showing 403 forbidden Error.
When I am talking with server support they told me about the security issue and it's mod_security issue.
Can anybody help me to solve this type of issue?
Try doing str_replace('/','%2F',$your_url) before submitting it to the server

What could be the reason for Okta Log Api giving internal Server Error 500 through code but giving result when run from Postman

I have a windows service which hits Okta Event Api
http://developer.okta.com/docs/api/resources/events.html
Now I have changed code to hit Okta Log Api
http://developer.okta.com/docs/api/resources/system_log.html
Problem : While Log api Get request works fine from postman tool it gives "Internal Server Error 500" when i run it from Code. The previous Event Api works perfectly fine from code and postman both.
This is what I get in response:
{"errorCode":"E0000009","errorSummary":"Sorry, there's been an error. We aren't sure what caused it, but we've logged this and will work to address it. Please try your request again.","errorId":"7f997bbe-7a31-4431-9f42-ae40db5200ac"}
What could be a possible reason for this?

Remote server responded with a text response - API connection error

I'm trying to connect my magento shop with Trustpilot and when I try to connect using http://example.com - Then I get this error:
"Connection problem: Remote server responded with a text response.
This may not be an API url?".
I have made the Soap rule in magento and the user and I have another API connection that works already.
Any advices?

Proxy Error in RoR web application

I have an RoR app and while deleting content from this app, I am encountering the following error. Although when I refresh the webpage after this error, the content is deleted in the request.
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /abc/xyz/source/23.
Reason: Error reading from remote server.
This is an Apache Web server.
Can you please help me find what could be the reason behind this ?
The invalid response from an upstream server is generated when Apache web server does not receive a valid HTTP response from the upstream server.
The reason may be because of the following things;
The application did not respond in time and the request from Apache timed out.
May be network device blocking the request.
You need to add/increase the timeout limit in httpd.conf file of your application.

Magento REST API not working in PHP

Whenever I try to call Magento's rest resources via PHP, I get an HTTP 500 Internal Server Error. My link is, in accordance to Magento's REST API, http://mymagento.com/api/rest/products.
Everything is set up properly and whenever I try to access it via the browser, the response is a page with the XML data I want. Same thing goes for the RESTClient plugin for Firefox.
I also get the internal server error whenever I try to do an authorised request as a customer.
Does anyone know why this is happening? I ran out of ideas an hour ago or so.
If you just got that problem (only) then,
500 errors in the HTTP cycle
Any client (e.g. your Web browser or our CheckUpDown robot) goes through the following cycle when it communicates with the Web server:
Obtain an IP address from the IP name of the site (the site URL
without the leading 'http://'). This lookup (conversion of IP name to
IP address) is provided by domain name servers (DNSs).
Open an IP socket connection to that IP address.
Write an HTTP data stream through that socket.
Receive an HTTP data stream back from the Web server in response.
This data stream contains status codes whose values are determined by
the HTTP protocol. Parse this data stream for status codes and other
useful information.
This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500'. (Last updated: March 2012).
Fixing 500 errors - general
This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.