tomka
March 28, 2022, 2:50pm
1
What I’m trying to do:
url_hash = get_url_hash()
What happens:
ExternalError: TypeError: undefined is not an object (evaluating ‘Object.keys(d)’)
at
Nav, line 117
called from
Nav, line 87
This only affects one of my users who is on a Mac (Safari Version 15.3 (17612.4.9.1.8) ).
Code Sample:
Code from my main form:
def __init__(self, **properties):
global_vars.nav = self
url_hash = get_url_hash() # <-- This produces the error.
self.init_components(**properties)
get_url_hash
is part of the anvil package. You would have to have from anvil import *
somewhere in your code to use it like you’re trying.
tomka
March 28, 2022, 4:15pm
3
Yes. That statement is there, though, so that can’t be the reason.
Is this an app you can share a clone link for? If not, try to create a minimal app that shows the problem.
1 Like
Thanks for reporting @tomka - we haven’t been able to reproduce this one.
If you have a private link you can share with me to the live app I’d be grateful.
As you’ve surmised it’s almost certainly browser related
I work on MacOS (M1) Safari 15.4 so I might see it under the right conditions.
1 Like
tomka
March 30, 2022, 10:06am
6
I created said app but haven’t yet heard back from my user who had this problem. Will get back to you once I did.
Clone link: Anvil | Login
That doesn’t cause it for me
We’ve had one other report of the same thing in this thread:
Possible bug when printing environment name
The only similarities are that it raises in the __init__
method.
So I don’t think it has anything to do with get_url_hash()
If you manage to reproduce it with your user let us know.
We’d love to fix it.
stucork
Split this topic
March 30, 2022, 2:02pm
8
tomka
March 30, 2022, 4:50pm
9
My user now tells me both the demo and the original app are working for her. She told me before that this problem was happening “since a few weeks” if this is any help.