URL dict_keys({...} different when logging w/ Google 3rd-Party versus Magic Link

Dear Friends:

Did I use Hello Friends last time? I can’t remember. :upside_down_face: I’ll use Dear Friends this time.

I notice that:

https://anvil.example.com/#?x=[yyyy] # Note: I'm still using the Dev Anvil URL.

provides the correct URL-Hash dict keys, as shown next, when logging in via Google 3rd-Party:

dict_keys(['y'])

However, that doesn’t appear to be the case when logging into the same URL via Magic-Link, because the behavior of the application (which is query-string aware) isn’t what I expect on start-up. Now, I can’t tell why exactly since, with Magic Link, you close your Browser Tab and lose your link with the App console.

  1. Any ideas? Maybe it’s something simple. One can always hope. Failing that …
  2. print() statements don’t (I don’t think) appear in Anvil logs. How to do that? (Python’s logger?). Is there a logging snippet anyone has? If yes, maybe I’ll be able to capture what dict_keys({…}) is when the application is logged into via Magic Link.

Thank you! :slight_smile:

print statements do appear in Anvil logs. It can sometimes be tough to work out which log has the entries you want, but there’s a search facility for log entries.

I haven’t used the magic link login, so can’t comment on the main question, sorry.

2 Likes

Ok. I browsed the incorrect log entries then. I’ll look at them again for what the dict keys were after Magic Link was used. Thank you.