app ignores config, queries localhost
See original GitHub issueJust tried to run the app with docker: docker-compose -f docker-compose.yml -f docker-compose.nodejs.yml exec app yarn mage2vs import
Elasticsearch ERROR: 2018-12-24T12:13:06Z
Error: Request error, retrying
POST http://localhost:9200/vue_storefront_catalog_eur/category/2/_update => connect ECONNREFUSED 127.0.0.1:9200
at Log.error (/var/www/node_modules/elasticsearch/src/lib/log.js:226:56)
at checkRespForFailure (/var/www/node_modules/elasticsearch/src/lib/transport.js:259:18)
at HttpConnector.<anonymous> (/var/www/node_modules/elasticsearch/src/lib/connectors/http.js:163:7)
at ClientRequest.wrapper (/var/www/node_modules/lodash/lodash.js:4935:19)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:401:9)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:66:8)
However, localhost is not what I have given in my config before I started the app. There’s http://172.24.0.8:9200
in there and I can confirm there’s correct ES on that IP with
docker-compose -f docker-compose.yml -f docker-compose.nodejs.yml exec app curl http://172.24.0.8:9200
.
I would expect the app to query what was given in config, but that’s not the case. Why?
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
app ignores config, queries localhost · Issue #163 - GitHub
Just tried to run the app with docker: docker-compose -f docker-compose.yml -f ... app ignores config, queries localhost #163.
Read more >How to Ignore localhost on Azure application insights
I added the following lines of code in my FilterConfig.cs: #if !RELEASE TelemetryConfiguration.Active.DisableTelemetry = true; #endif Anastasia, ...
Read more >Was "Urls" in appsettings.json ignored in ASP.NET Core 6.0?
In ASP.NET Core 6.0, is it no longer possible to override the Kestrel URL in appsettings.json > "Urls" as it was up to...
Read more >Configuration | StackHawk Docs
Allowed URL's include hostnames, IP:PORT, and localhost -- paths (such as https://domain.com/api/v2) can be scanned but cannot be set as the app.host value....
Read more >Configure Hosting behavior | Firebase Hosting - Google
You define your Firebase Hosting configuration in your firebase.json file. ... The ignore attribute specifies the files to ignore on deploy.
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
@lukeromanowicz steps to reproduce fresh git clone of this repo
see how you get:
It tried to query named host
elasticsearch
completely ignoring thehost
config node.@janmyszkier that was exactly it. Sorry I forgot to update the thread saying I’d figured it out, but thanks for following up!