When running the curl on rest api :
curl -X POST -H "Authorization: Token <token_id>" "http://localhost:4000/api/.....url"
I am getting
The system cannot communicate with the external server The Internet server may be busy, may be permanently down, or may be unreachable because of network problems.Please check the spelling of the Internet address entered.If it is correct, try this request later.If you have questions, please contact your organization's network administrator and provide the codes shown below.
Username:my username
Source IP: my ip
URL: POST http://localhost/api/.....url
Category:
Reason: UNKNOWN
Notification: GATEWAY_TIMEOUT
as the response. It was working properly earlier. Can you tell me what is wrong.
I made the server run in localhost:4000 and gave it on curl but the response in giving gateway timeout.
btw im under proxy.
Related
I have an express js client app and an express server app with almost the same istio configuration. Client cannot be accessed through its host URL while the server is working well. Curl client host URL just gives me infinite waiting. And I cannot find any related traffic log in the istio-proxy of client pod. This is very confusing. What could be the possible reason for this problem?
istioctl analyse on live cluster dose not give any helpful information
So, I am trying to make an API server on postman. Somehow it doesn't want to start. I know I have a crap computer, but I can run this many pages.
So, back to the problem. I am trying to run GET localhost:3000/users?id=hiddenIDsoyoucanthackme and it says this:
Hmmm… can't reach this page: localhost refused to connect.
Try:
Search the web for localhost
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
Back on the problem. Same at Postman.
Error: connect ECONNREFUSED 127.0.0.1:3000
Help.
Have created a chatbot and I am trying to connect it to my local host using ngrok....the localjost is running via my computer and is showing active...however dialogflow webhook is not able to send any request to the ngrok portal...
I have tried multiple time to host a server via ngrok and pasted the link in webhook section in Dialogflow..but dialogflow diagnostic shows
Webhook call failed. Error: PERMISSION_DENIED.
fulfillment status ngrok cmd prompt ngrok server
Any help would be appreciated...not sure what I am missing....
Without seeing the actual configuration, there are a few things I would look at:
Make sure you're actually using the right ngrok URL from your console. Many times I was using an older URL in the Dialogflow configuration.
Make sure you're using the HTTPS URL.
Make sure your server is actually running on your computer, and that it is listening at the same port that ngrok is using on your computer.
Check the ngrok console to see if it is getting the request at all and what the response might be.
Go to http://localhost:4040/ which will give you details of each connection through ngrok.
I have a working API on APIM in a linux box.
I am now trying to set it up in azure env with Linux installation. I had to do following additional changes in this new box.
1) has certificates applied
2) changed in carbon.xml to box's hostname.
I am getting below error while regenerating access token in store.
ERROR {org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject} - Error
while **renewing Access Token for Consumer Key hXXXXX8a** and user admin
{org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject}
org.wso2.carbon.apimgt.api.APIManagementException: Error occurred
while calling token endpoint: HTTP error code : 500 at
org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl.getNewApplicationAccessToken_aroundBody10(AMDefaultKeyManagerImpl.java:383)
at org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl.getNewApplicationAccessToken(AMDefaultKeyManagerImpl.java:304)
at org.wso2.carbon.apimgt.impl.APIConsumerImpl.renewAccessToken_aroundBody26(APIConsumerImpl.java:1019)
at org.wso2.carbon.apimgt.impl.APIConsumerImpl.renewAccessToken(APIConsumerImpl.java:998)
Any pointers on what's could have gone wrong here? thanks
ETA -
I am talking about APIM 2.6.0 here which is running on a Azure node. I see two IP addresses associated to VM APIM is running on
Public IP address:11.22.333.444
Private IP address:10.240.0.98
My understanding is private is for internal communication between azure and is not visible to outside azure node.
BUT I also see that Curl and Request URL in store is pointing to private IP address
Curl
curl -k -X POST "https://10.240.0.98:8243/AAA/1.0.0/getDevice" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 7647ce6f-51a5-3e59-b400-36ca9e458913" -d "{ \"DeviceIDStruct\":{ \"Manufacturer\":\"\", \"OUI\":\"00E0FC\", \"ProductClass\":\"HG5678\", \"SerialNumber\":\"U7D8W168888\" }}"
Request URL
https://10.240.0.98:8243/AAA/1.0.0/getDevice
This is probably causing the issue as Private IP address is not visible outside Azure node.
I want to connect to Amazon Dynamodb by sending http request.
I am getting various errors while doing so..
The errors are :
1) Connection refused, The remote host or network may be down
2) Read time out
3) Invalid Request, Some aspect of the HTTP Request is invalid.
I have also tried it with the help of crypto class.. But, had no luck.. :(
Please help me to find the right way to do the integration.. :(