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

not found #21

Closed
andrew-davis opened this issue Sep 30, 2022 · 3 comments
Closed

not found #21

andrew-davis opened this issue Sep 30, 2022 · 3 comments

Comments

@andrew-davis
Copy link

I followed the steps in the readme to configure Cloudflare for my Dream Machine. When I go to my worker url, I see 'not found'. Is that the expected behavior?

@Cohors1316
Copy link

Cohors1316 commented Oct 12, 2022

pretty much. your worker is expecting additional information to be sent with the url, and since that information is missing it fails to the not found response. If I'm reading it right you might not have added the /update at the end of your worker, which would have failed every case in the switch. Even with that there's still things that would be appended to the request that you would have to supply yourself. If I can ever get my UDM to actually talk to CF I could tell you more but that's where I'm stuck at.

@andrew-davis
Copy link
Author

andrew-davis commented Oct 12, 2022

Thank you for responding! I'm new to this, and trying to learn.

I did append 'update' to the string I entered into the server field of the dyndns setup on my UDM. Following the instructions, it looks like this:

xxxx.xxxx.workers.dev/update?ip=%i&hostname=%h

image

I see incoming requests being registered by the worker.
image

And I see OK responses in the cloudflare log.
image

I'm not sure how to troubleshoot further though.

@willswire
Copy link
Owner

@andrew-davis, the behavior you're encountering when visiting the worker url in your browser, is expected as @Cohors1316 mentioned. the worker does not serve website content like a traditional web server, it is only listening for a HTTP POST from your UniFi device.

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

No branches or pull requests

3 participants