Unable to access API server on localhost
See original GitHub issueI’m trying to run my ember app against an API server running on my local machine and am getting an error.
Error while processing route: index Ember Data Request GET http://localhost:3000/api/path returned a 0
Payload (Empty Content-Type)
Error: connect ECONNREFUSED 127.0.0.1:3000
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14) Error: Ember Data Request GET http://localhost:3000/api/path returned a 0
The target server is rails 4.2.5.1 and works fine against the ember app without fastboot enabled.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
google app engine - Cannot access API explorer on localhost
In any case, when I try to hit that URL, I get immediately redirected to https://developers.google.com/apis-explorer/?base=http://localhost:8080/_ah/api#p/, ...
Read more >How to access API outside of localhost? · Issue #1152
Let's say my Wireguard IP is 10.0.0.1, then in the config.properties file, I change inference_address=http://10.0.0.1:8080. I'm able to use the API locall.
Read more >Localhost Refused to Connect Error: 5 Confirmed Ways to ...
Localhost refused to connect error can be caused by an incorrectly configured port, insufficient permissions, or an inoperative web server.
Read more >Localhost REST service cannot connect
Method URL is set to https://localhost:3000/api/login. I click the TEST tab, and hit TEST button. Says 'Contacting cloud'. Then I get the following...
Read more >Solved: Unable to access my server hosting api, getting co...
I have a 2 valid swagger.json showing my 2 of my API definitions on the UI. One of my API server is on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m also having this issue. Any ideas?
@danmcclain
I am using fastboot, it is working fine with static data and auth pages where I don’t need authentication.
But it has issue when an API needs Authorization.
Here is my package.json dependency list.
Here is the error that I am facing. Your help will be highly appreciated.
Thanks,