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

Cloudflare Service Token not working with new Additional headers in 3.28 #680

Open
bkcberry opened this issue Dec 7, 2023 · 7 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@bkcberry
Copy link

bkcberry commented Dec 7, 2023

I'm accessing OctoPrint externally through a cloudflare ZT application and saw where you guys literally days ago added the ability for octopod to utilize this with service tokens. I created a new token and added it to my CF application, pasted the client id and secret in octopod and hit request, but it's telling me "The data couldn't be read because it isn't in the correct format"

My client id and key were pasted in exactly this format with spaces:
CF-Access-Client-Id: 2ecxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.access, CF-Access-Client-Secret: 1axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Does anyone have any ideas? Please and thanks

@gdombiak
Copy link
Owner

gdombiak commented Dec 7, 2023

Hi @bkcberry,

Thanks for reporting this issue. During the weekend I will spend some time looking into this. I will paste the exact same text you pasted above (I know it is fake but should be enough to see this error I think).

BTW, when and where do you get the error message "The data couldn't be read because it isn't in the correct format"?

Thanks,
Gaston

@gdombiak gdombiak added this to the 3.29 milestone Dec 7, 2023
@gdombiak gdombiak added the bug Something isn't working label Dec 7, 2023
@bkcberry
Copy link
Author

bkcberry commented Dec 7, 2023

Thanks! This was on the screen to add a new printer

@bkcberry
Copy link
Author

Has anyone ever had a chance to look into this?

@AdmiralMichael
Copy link

I am having this issue as well

I have my cloudfare tunnel forwarding to NGINX Proxy Manager then to Octoprint (I run pihole and this allows me to keep the traffic local when on the LAN). So the domain I use resolves to the NGINX IP when on my wifi.

When I get the error I am on cellular data, when I am on my wifi it works but once I turn off wifi it stops working.

So it looks like the issue is with the CF tunnel setup.

@AdmiralMichael
Copy link

Nevermind I fixed it, I didn't select Service Auth under Action when creating the application. I had it as Allow.

@gdombiak
Copy link
Owner

@AdmiralMichael , good to hear you got it working. Let me know if I should update the documentation.

Is this still an issue for anyone else?

Thanks,
Gaston

@bkcberry
Copy link
Author

I've just tried this again, verified everything in the instructions, but am getting Invalid HTTP upgrade (302), which is not covered in the instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants