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

Invalid QR code #166

Open
Quintasan opened this issue Mar 25, 2022 · 23 comments
Open

Invalid QR code #166

Quintasan opened this issue Mar 25, 2022 · 23 comments
Labels
bug Something isn't working

Comments

@Quintasan
Copy link

Describe The Problem

Android WireGuard client refuses to import via QR code with

WireGuard/TunnelImporter: Couldn't import tunnel: unkown section in Config

I also tried scanning the QR code using https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye&hl=pl&gl=US which yields 03048812 instead of the configuration file as one would expect

@Quintasan Quintasan added the bug Something isn't working label Mar 25, 2022
@donaldzou
Copy link
Owner

donaldzou commented Mar 25, 2022

Huh.. this is weird, what is the output of the QR code?

@donaldzou
Copy link
Owner

Done

@donaldzou
Copy link
Owner

donaldzou commented Mar 25, 2022

This is what I got when I scan it

@Quintasan
Copy link
Author

Fascinating, I'm running official WireGuard client from Google Play, and it fails to decode this. Decoding also fails with Binary Eye which usually outputs the contents of QR codes as is.

@donaldzou
Copy link
Owner

This is interesting lol, I never had this problem since i'm using an iOS device. I will look into it.

@donaldzou
Copy link
Owner

Fascinating, I'm running official WireGuard client from Google Play, and it fails to decode this. Decoding also fails with Binary Eye which usually outputs the contents of QR codes as is.

What is the output of the qrcode when you use a normal scanner?

@donaldzou
Copy link
Owner

Hi I've noticed that there are some part of the QR code did not show, around the border, could you try right click and save the qrcode and scan it again with wireguard? I used an android device to scan my own qrcode and it worked.

@Quintasan
Copy link
Author

No dice. Still the same issue. I think this is a problem with the library used by WireGuard client, ZXing which fails to recognize this as a QR code.

Binary Eye: UPC-E code
ZXing: UPC-e code

@donaldzou what phone did you use, what Android version? what WireGuard application version?

@donaldzou
Copy link
Owner

I was using a XiaoMi phone, android 11 and the newest wireguard version (just downloaded from playstore)

@donaldzou
Copy link
Owner

Screen Shot 2022-03-25 at 2 49 10 PM

Can u try this?

@Quintasan
Copy link
Author

I created another peer for my Galaxy S10, and it has the same problem when using the WireGuard application. There must be some kind of issue with the way it deals with QR code recognition...

@Quintasan
Copy link
Author

Screen Shot 2022-03-25 at 2 49 10 PM

Can u try this?

Worked almost instantly. I guess it's those filled-in squares at the edges that made the difference

@donaldzou
Copy link
Owner

Yes, the the qrcode on your side should looks similar to mine, you mind telling me what browser your are using?

@Quintasan
Copy link
Author

Yes, the the qrcode on your side should looks similar to mine, you mind telling me what browser your are using?

Firefox 98.0.2 under Windows 10

@Quintasan
Copy link
Author

FYI Chrome does the same shit

obraz

@donaldzou
Copy link
Owner

I used my windows laptop with Firefox and it looks totally fine😂😂image

@donaldzou
Copy link
Owner

FYI Chrome does the same shit

obraz

What if is something related to your Windows setting? Could you try log onto the dashboard with your phone?

@Quintasan
Copy link
Author

Exactly the same issue happens when I go to the dashboard using my phone. At this point I consider it a problem with my installation.

@donaldzou
Copy link
Owner

do you mind to do python3 -m pip list | grep Flask-QRcode on your server and let me know the version number?

@Quintasan
Copy link
Author

Flask-QRCode 3.0.0

@donaldzou
Copy link
Owner

This is very interesting... Python should have a same output across all different OS, that's why I choose to use python on this project... I will look into this...

@donaldzou
Copy link
Owner

Or maybe do a fresh install? If you want to

@anboch
Copy link

anboch commented May 7, 2023

I've encountered an issue with scanning a QR code on a dark theme. It appears that adding white margins around the QR code is necessary.

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