Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api's are not using proxy url #72

Closed
subi-kp opened this issue Jul 7, 2018 · 7 comments
Closed

Api's are not using proxy url #72

subi-kp opened this issue Jul 7, 2018 · 7 comments
Assignees
Labels

Comments

@subi-kp
Copy link

subi-kp commented Jul 7, 2018

Summary

I am running cronicle in kubernetes as a docker container. And exposed UI using ingress.

Websocket is working fine but while clicking login button, after entering password i am getting 500.

Error: Network Error: 500: An unknown network error occurred. Please try again.
I inspected from my browser, the request url is hitting internal hostname of the container instead of my endpoint url.
container url: http://cronicle-75987bb6b6-8j7w9:3012/api/user/login --> (current issue )
endpoint url: http://cronicle.xyz.com:3012/api/user/login --> (expected)

@jhuckaby
Copy link
Owner

jhuckaby commented Jul 7, 2018

This is actually as designed. See: #63 for details.

@subi-kp
Copy link
Author

subi-kp commented Jul 7, 2018

This will work on same network. but in my case container is a private network and meanwhile, I am accessing from public.
Websocket is working perfectly for me, but not apis.

Thanks for your fast response.

@jhuckaby
Copy link
Owner

jhuckaby commented Jul 7, 2018

That's really bizarre. The websocket and API requests are both supposed to hit the same endpoint. I guess this is an open bug.

@jhuckaby jhuckaby added the bug label Jul 7, 2018
@jhuckaby jhuckaby self-assigned this Jul 7, 2018
@subi-kp
Copy link
Author

subi-kp commented Jul 7, 2018

Can I get any ETA for this bug?

@jhuckaby
Copy link
Owner

jhuckaby commented Jul 7, 2018

I'm sorry, but I don't do ETAs. This is an open-source free project, that I only work on in my spare time. I also have never used Docker before, so I am not even sure how to reproduce this bug.

You might want to take a look at this pull request: #65

Perhaps his fork corrects this issue.

Apologies.

@subi-kp
Copy link
Author

subi-kp commented Jul 7, 2018

Thanks for your valuable time. Actually I looked into the PR, where the issue is about the web socket port. But in my case url endpoint is an issue, while running cronicle over the nginx proxy. Will send you steps to reproduce it soon

@dol-leodagan
Copy link
Contributor

I'm currently working on a Docker Image for Cronicle, served behind a nginx reverse-proxy and I made a workaround in the entrypoint for this error :

export HOSTNAME="${VIRTUAL_HOST}"

VIRTUAL_HOST is the FQDN of the service

This can bring other problems if you arbitrarily change the HOSTNAME after storage setup but that's not a limitation for my usage...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants