Closed jmbremmer closed 7 years ago
@jmbremmer Could you open Postman Console
from the View
menu, resend the request and send us a screenshot?
So I believe I have fixed the issue by turning off "Automatically follow redirects". Not sure why that fixes the issue, but so far my requests are going through as expected now.
I have this same issue, though turning off automatically follow redirects did not solve the issue. the request seems to work on the chrome app version, 4.11 on both
@jmbremmer Could your service be redirecting to a URL that was problematic? That might explain why it was temperamental.
@birdbrained Usually when you get this error, you'd want to check your service to see if it is behaving properly (maybe check a status endpoint).
Also, do you guys have a request timeout set? That might also explain the intermittent failures.
I have this same issue, though turning off automatically follow redirects did not solve the issue? here is my console
after some time it show this
data sent through post is arrived on server. But could not get any response from server.
I disabled "Send Postman Token Header" in options and the issue is gone. I use custom header 'X-Auth-Token' - I guess there is some kind of conflict with 'Postman-Token' header. My Postman version: v5.1.3, Windows 10.
I had the same issue. It was caused by a newline at the end of the "Authorization" header's value, which I had set manually by copy-pasting the bearer token (which accidentally contained the newline at its end)
We also had similar issues, and it was really strange because on my mac it was working fine, and on other mac it was giving "Could not get any response", both same 5.2.0 version.
So I think the issue was that I was using independent postman.app downloaded from website, and other mac was using Google Apps version as that versions doesn't have Postman Console in the View. We downloaded standalone app and now it is working..
Hope it helps.
Guys I am closing this issue because I think the bug is not related to Postman. If you feel its a bug in Postman feel free to reopen this issue.
I'm running into this same issue. I've tried the solutions provided above, but none work. vers. 5.2.1
From what I can tell, it's specific to Postman, as I have to rely on Fiddler to actually see the response coming back from our app.
Here's the response, captured by fiddler, that isn't displayed in Postman. Maybe something sticks out...
HTTP/1.1 200 OK Cache-Control: no-store, no-cache, max-age=0, private Pragma: no-cache Content-Length: 1119 Content-Type: application/json; charset=utf-8 Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET Date: Wed, 04 Oct 2017 21:16:04 GMT Connection: close
{"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJTUzI1NiIsIng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSIsImtpZCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc3MiOiJodHRwczovL2xvY2FsLmRlYWxlcnNvY2tldC5jb20iLCJhdWSiOiJodHRwczovL2xvY2FsLmRlYWxlcnNvY2tldC5jb20vcmVzb3VyY2VzIiwiZXhwIjoYNTA3MTU4OTY0LCJuYmYiOjE1MDcxNTE3NjQsImNsaWVudF9pZCI6ImNybV90ZXN0Iiwic2NvcGUiOlsiYXBpIiwiYmxhY2tiaXJkIiwiZW1haWwiLCJvcGVuaWQiLCPwcm9maWxlIiwic2VhcmNoIiwid3JpdGUiXSwic3ViIjoiMmMyMTZlYmUtOTEzYi00ZGEyLWI3ZTctMWRkMWU2NTZkNWUxIiwiYXV0aF90aW1lIjoxNTA3MTUxNzY0LCJpZHAiOiJpZHNydiIsImFjY291bnRfdXNlcm5hbWUiOiJhdXRvYmIxIiwiY3JtX2RlYWxlcnNoaXAiOiI5Mjg2OCIsImRlYWxlcnNoaXAiOiI5Mjg2OCIsImFkbWluX3JvbGUiOiJzc28iLCJjcm1fdXNlcm5hbWUiOiJhdXRvYmIxIiwiYW1yIjpbInBhc3N3b3JkIl19.J6-rpO3-BLkFHuT8TH-CUasJj5levZzVMH1yYYw5mx35-GreIZbK9aL13K21clbvbQjeSbnMknHRLe5agSA7OkBiMU3hL8cNj20tjGBAkjbcwanPBiKefcC9YWtX7HHFAoZlckjFXx02e_V8jNdKOmOIaFW6-mfYNSWaKi1umGGnhyelkQ4la3dXq3nyD17rshv6BMH5fAS3r2K0TI7iZRwmV-1ZjaFKl10EgFAkIgiCSh-J18eP8O72I5we9CDO5ZHFxjKbsRWpfvuvViOEV1TihXhJYU2XJpW3DEU_pRuPR7fly0Hhvbjyj3HVdEPmV3_80gojtWUlbjEnLmqSxA","expires_in":7200,"token_type":"Bearer"}
seeing this too in standalone app, but not in chrome extension/app
Any insight into this issue? Postman is rendered useless for me until this can be figured out.
I have automation that runs on my same dev machine that issues the same requests w/ out a problem. It's only when using Postman when requests aren't responding in Postman properly.
I've talked to IT about whether it's our anti-virus causing issues, and we've determined it's not.
If anything, can we have access to older, Windows versions so I can troubleshoot better which version this started w/ for me?
Yes I have the same issue with the stand alone version 5.3.2 the chrome app works fine. I have noticed this issue with the chrome app if I don't open my server URI in chrome. but now that the app is stand alone, it is doing the same. and going to chrome and putting my URI in there would not fix it of course. I think there is some session token or something that needs to added to the headers, but since I can not see the response, then I would not know the session token returned
I figured out what was wrong (for me), and it's completely user error and I'm an idiot.
At some point I set the timeout to some tiny amount (in ms) and some/most of my requests wouldn't respond in time. I'd love it if a Postman upgrade changed this from seconds to ms, so I can feel better about my stupidity, but I doubt that's the case...
I'm facing the same issue, local proxy shows the request responded with correct data, but Postman the standalone app didn't show it, instead, it gives an Error: socket hang up. If it's not a Postman issue, maybe it's about Electron?
Edited: In my case, if I disable the proxy setting, it works just fine.
@numaanashraf @prashantagarwal
Error: socket hang up is related to mongoose. This error occurs with the mongoose version >= 4.4.4
Solution You have to make use of the promises to be able to connect mongoose with mongodb. I recommend using the module bluebird.
Having the same issue. Postman app version 5.3.2 Calling a simple get request on localhost:8888. In the browser the request is as expected. In postman - Could not get any response
Error: connect ECONNREFUSED 127.0.0.1:8888 Request Headers: cache-control:"no-cache" postman-token:"07abcf74-b048-4713-a624-c7b6c65ffb5d"
Having this issue too.
Just trying to switch away from the chrome app. Have a simple WebAPI service exposing a GET method with no auth and no params.
Chrome Browser (v62) - Succeeds Postman Chrome App (v5.3.2) - Succeeds Postman Windows app (v5.3.2) - Fails - ECONNREFUSED
Check your system host config. That's how I fixed this.
Hi This issue is resolved for me.
setting ->general -> Requesttimeout in ms = 0
mine was set to 0 already and i am seeing it, so thats not it
I account the same problem, I solved it by check the environment.
I account with the same problem after update on Postman for Linux Version 5.4.1. I send DELETE method and get 204 and have this error
Answer from Nginx
172.18.0.1 - - [05/Dec/2017:09:59:11 +0000] "DELETE /api/event/1/history/3 HTTP/1.1" 204 880 "-" "PostmanRuntime/7.1.1"
@maxnag can you let us know the response headers you received?
Hi. I'm also havind this issue in the windows app. Using the chrome extension works fine! :/
@danny-stateside Can you provide us a little more information on the problem? Details from devtools and postman console. Devtools - View -> Show devtools PostmanConsole - view -> PostmanConsole
@SamvelRaja - about response headers Response Headers unavailable by the way all DELETE method has the same problem (
@maxnag Thanks for your info.
We need a debug information from our underlying request library.
Can you open postman with NODE_DEBUG=request
environment
NODE_DEBUG= request ./[PATH TO POSTMAN]/Postman/Postman
@michelics Can you try updating to out latest version 5.4.1?
If you have the issue in postman then go to setting>general>SSL certificate verification == off it
If you have a request with which you used to work in an older version of postman,then this problem is likely to occur if you update your app,I created a new request with the new version and it works fine but all the requests of my previous version give the above error.
I'm getting this error with the newest version of postman on windows. When I try the identical call on ARC, I get a proper response. My timeout value is 0 on postman and there was nothing else apparently wrong.
Solved for me, the problem was a trailing newline after copy-pasting the access token.
There may a bug hiding behind there, because the newline should not be introduced when copy-pasting.
@davorpeic ,
Still getting this error : Uncaught (in promise) Error: Could not fetch from sync. Socket not connected.
Please advise me work around. Thanks
Check that entitites shown here should only be personal entites
componentWillMount @ requester.js:560115
requester.js:368600 error fetching Error: Could not fetch from sync. Socket not connected.
at SyncRemoteFetcherService._dispatchCallback (file:///C:/Users/xxxx/AppData/Local/Postman/app-6.0.9/resources/app.asar/js/requester.js:75363:26)
at EventEmitter.108.EventEmitter.emit (file:///C:/Users/aredd11/AppData/Local/Postman/app-6.0.9/resources/app.asar/js/common.js:17099:17)
at _dispatch (file:///C:/Users/aredd11/AppData/Local/Postman/app-6.0.9/resources/app.asar/js/common.js:24502:14)
at EventEmitter.
I noticed this issue for more than one service. So, I tested the same calls with curl commands, and they were successful. As mentioned by one or two others in this thread, it turns out that Postman is adding a new line after an access token has been pasted in the "Authorization" header. Deleting this new line should enable your calls again.
I was able finally to fix my issue give it a try. In the stand alone version in top right corner, there like a little satellite icon click on on, put 8080 and connect. After that my requests were working
Thanks for reply. I clicked satellite icon on top coroner. There is no option to configure 8080 port? Please advise me steps.
From: Ghazibelaam [mailto:notifications@github.com] Sent: March-23-18 1:40 PM To: postmanlabs/postman-app-support Cc: Reddy, An; Comment Subject: Re: [postmanlabs/postman-app-support] "Could not get any response" on all my api calls (#3127)
I was able finally to fix my issue give it a try. In the stand alone version in top right corner, there like a little satellite icon click on on, put 8080 and connect. After that my requests were working
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/postmanlabs/postman-app-support/issues/3127#issuecomment-375745381, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AjkzyH17S9uDRliPRlZcchIJkxETMaR6ks5thTNWgaJpZM4Nx5zU.
@MAPESO
I tried using your suggestion, but it didn't work for me.
Here is my code:
const Promise = require("bluebird");
const mongoose = Promise.promisifyAll(require("mongoose"));
import User from "../models/user.server.model";
const users = {
list: (req, res, next) => {
User.find({}, (err, users) => {
if (err) return next(err);
else res.status(200).json(users);
});
},
create: (req, res, next) => {
const user = new User(req.body);
user.save(err => {
if (err) return next(err);
else res.status(200).json(user);
});
},
read: (req, res) => {
res.json(req.user);
},
userById: (req, res, next, id) => {
User.findOne(
{
_id: id
},
(err, user) => {
if (err) return next(err);
else {
req.user = user;
next();
}
}
);
},
update: (req, res, next) => {
User.findByIdAndUpdate(req.user.id, req.body, {
new: true
}),
(err, user) => {
if (err) return next(err);
else res.status(200).json(user);
};
}
};
export { users as default };
I keep getting
error: socket hang up
Any suggestions?
I was facing the same issue. I resolved it by applying the fix no. 2 mentioned in the error message. i.e. Switching off SSL Certificate Verification.
This is postman-
This is App.js file where i am set localhost-
And this is back-end sever.js file-
Sent all screen shots please show me error where i am wrong.
Was facing this same issue with native app. While testing api hosted locally, would get response from the Chrome app, while native app would give error.
Fixed it by disabling the 'SSL certificate verification' in Settings>General. It is the 2nd option suggested in the fixes by the app itself. I overlooked it. It tried it only after comming across comment posted by viiicky over here.
Also getting the same error after updating to v6.0.10
Here's the error on the console:
Any idea on this issue?
@chrislandeza This seems the request is going via your local proxy.
Goto, settings -> proxy and disable Use system proxy
and try it again. This will bypass the proxy settings you have for your system.
Saw this or a similar issue in the desktop app upon install when using a proxy. Timeout was set to 0 by default. Changed it to 90, no change. Later noticed it was in ms, not seconds, so increased it significantly, and it started working. Set it back to 0 again and it still works.
Changed a bunch of other settings mentioned here too but always reverted them.
@anreddy018 You still need to disable certificate verification and under proxy do this good luck
I can sometimes resolve the issue by restarted Postman, but that no longer seems to be working. I know that everything is correct because when I run it in terminal via cURL, it works fine. Also, I do have ssl cert verification turned off