-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cannot claim new printer #15
Comments
Afraid I don't know how the little-printer-claim-code site works, but fake printers still work on the server- joerick@joerick3 ~/P/sirius> heroku run bash 130 master?
Running bash on ⬢ nord-sirius... up, run.6661 (Hobby)
~ $ ./manage.py fake printer
/app/sirius/emulate/commands.py:8: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7. Please monkey-patch earlier. See https://github.com/gevent/gevent/issues/1016. Modules that had direct imports (NOT patched): ['urllib3.util.ssl_ (/app/.heroku/python/lib/python3.7/site-packages/urllib3/util/ssl_.py)', 'urllib3.util (/app/.heroku/python/lib/python3.7/site-packages/urllib3/util/__init__.py)'].
gevent.monkey.patch_all()
[2020-05-10 11:13:11,045] DEBUG in webapp: Creating app.
DEBUG:sirius.web.webapp:Creating app.
address: 18252e3bd7249cc2
DB id: 323
secret: a5d1bb83a9
xor: 487148
claim code: 234b-cnev-hfnh-fvqd
Created printer and saved as 18252e3bd7249cc2.printer I've added this to the site and it's showing up as a new printer. I did push some changes a couple of weeks back but it didn't change the claim logic - e5adbc4...nordprojects:master |
@joerick well, it may be in the server but sure not on the UI, I tried two printers already and yet I only see my real fake printer |
(the source for the site: https://github.com/notjosh/little-printer-claim-code-web, @notjosh ported the printer generation logic to javascript) |
(complete guess from reading the server code) try to have your fake printer connect to the server, then perform the claim |
@joerick I tried, and this happens:
And it does not show up in the UI. |
@joerick tried claiming the printer again, still nothing. |
@notjosh might be able to shed some light? I haven't used the fake printers at all tbh
…Sent from my phone
On 10 May 2020, at 13:00, Tamás Kádár ***@***.***> wrote:
@joerick tried claiming the printer again, still nothing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'll try to create a new printer from |
@joerick however, my local |
did you manage to get anywhere further with this @KTamas ? |
Two things to add!
|
Ah great! Thanks for the update. Do the 503s represent unhandled exceptions in the Python server or something else? |
Yeah, exactly that. For example, this snippet causes a response like: |
The text was updated successfully, but these errors were encountered: