Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Default ONE_CLIENT_REPORTING_URL value does not work in Docker #1193

Closed
smackfu opened this issue Nov 27, 2023 · 0 comments · Fixed by #1194
Closed

Default ONE_CLIENT_REPORTING_URL value does not work in Docker #1193

smackfu opened this issue Nov 27, 2023 · 0 comments · Fixed by #1194
Assignees
Labels
bug Something isn't working

Comments

@smackfu
Copy link
Member

smackfu commented Nov 27, 2023

🐞 Bug Report

Describe the bug

The default value for the ONE_CLIENT_REPORTING_URL is using the IP address that node sees. When running inside docker, this is an internal IP which is not exposed. For example: http://172.17.0.2:3000/_/report/errors. As a result, the error reporting fails.

This also applies to ONE_CLIENT_CSP_REPORTING_URL.

To Reproduce

  1. Start One App inside docker using one-app-runner.
  2. Trigger a javascript error, for instance by using an undefined variable.
  3. See call to http://172.17.0.2:3000/_/report/errors hang and then timout.

Expected behavior

Error reporting call should succeed and Javascript error should be reported in console logs.

System information

  • OS: macOS
  • Version of one-app: 6.8.2
  • Are you using building one-app from source or using the release Docker image? Docker
@smackfu smackfu added the bug Something isn't working label Nov 27, 2023
@smackfu smackfu self-assigned this Nov 27, 2023
@smackfu smackfu changed the title Default ONE_CLIENT_REPORTING_URL and ONE_CLIENT_CSP_REPORTING_URL values do not work in Docker Default ONE_CLIENT_REPORTING_URL value does not work in Docker Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant