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

Can't open the link sent after scan of unrecognized barcore: "Unable to connect" #6

Open
phrostylicious opened this issue Nov 6, 2020 · 4 comments

Comments

@phrostylicious
Copy link

phrostylicious commented Nov 6, 2020

Just installed oscar and after the reboot scanned a barcore.
Got the mail where it says
" Hi! Oscar here. You scanned a code I didn't recognize for a "". Care to fill me in? http://[ip address]/learn-barcode/1JeIQt6E2Uuy
Following that link I get to a "Unable to connect" page.

@henroFall
Copy link
Owner

Hmm, is it possible that the URL is exposing an IP address inside your firewall (like a 192.168.x.x, or a 10.x.x.x), and you are trying to connect with a device that is not currently on your wifi?

@phrostylicious
Copy link
Author

It is referencing a local network IP but the host is reachable: so that's not it. My thoughts are going towards the webserver not being up and running/being started properly by Oscar2?

@henroFall
Copy link
Owner

Hmm I see that, too. I don't have many new barcodes anymore so this wasn't failing here. I've uploaded a new scan.py, which comments out the gmail section. That seems to work for me. Can you use WinSCP to replace the scan.py on your machine, or, all I did was put a ''' at line 221 (in front of gmail_user = conf.get()['gmail_user'] , and another set at the end of line 233 after smtpserver.close() .
I need to pick back up what I'm doing in the dev branch to allow upgrades (still planning to port to Python 3 by the end of the year).

I'm leaving the issue open for now, as for now gmailing is not working, but i will fix this soon.

@henroFall
Copy link
Owner

henroFall commented Nov 14, 2020 via email

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

2 participants