question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

strange output and CORS issues on docker image

See original GitHub issue

Bug Report or Feature Request (mark with an x)

  • [x ] bug report -> please search issues before submitting
  • feature request

Versions.

I DONT KNOW HOW TO OBTAIN THIS INFORMATION I HAVE LOGGED INTO DOCKER CONTAINER BUT NG NODE AND NPM ARE NOT ON A KNOWN PATH

Repro steps.

i followed steps to build and run in docker and the app loads but the loader is running perpetually and also making a circular path on the screen itself…

The log given by the failure.

Angular library has started with this options:
Object { config: {…} } main.6013eb5415a5fdb20c8b.bundle.js:1:1128809 Request for /assets/i18n/en.json took 242 ms. main.6013eb5415a5fdb20c8b.bundle.js:1:117590 ERROR Object { headers: {…}, status: 0, statusText: “Unknown Error”, url: null, ok: false, name: “HttpErrorResponse”, message: “Http failure response for (unknown url): 0 Unknown Error”, error: error } main.6013eb5415a5fdb20c8b.bundle.js:1:434568 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://nodejs-example-app.herokuapp.com/heroes. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). ERROR Object { headers: {…}, status: 0, statusText: “Unknown Error”, url: null, ok: false, name: “HttpErrorResponse”, message: “Http failure response for (unknown url): 0 Unknown Error”, error: error }

Desired functionality.

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
laurencefasscommented, Mar 27, 2018

i assume this is for data access. is that correct? how easy would it be to add local data to the app so its self contained. can it be achieved with docker volumes?

perhaps one (small) problem with the app is the orbiting loader?

0reactions
Ismaestrocommented, Apr 26, 2018

I’ve increase the number of hours for the dynos in heroku, so this error is not going to happen anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

strange output and CORS issues on docker image #21 - GitHub
Repro steps. i followed steps to build and run in docker and the app loads but the loader is running perpetually and also...
Read more >
CORS issue in docker container - Reddit
HI All, I have an ASP DOT NET Core Web API (3.1) I have enabled CORS and have deployed the Web API to...
Read more >
Solving CORS problem on local development with Docker
Hi everyone! In this post I'll show you a simple way to handle CORS-related problems that usually happen on local development environments.
Read more >
CORS Fastapi Problem in dockerized deployment to Digital ...
I set it up so requests to /api go to the backend. That way the frontend and the backend have the same domain...
Read more >
Docker CORS issue - Jitsi Community Forum
I have a jitsi-docker server running in my local ip and everyone in my network can create/join room in that server in https://mylocalip:port ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found