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

TypeError: Cannot read properties of undefined (reading 'WINDOWS_NOT_LOADED') #82

Open
itchibahn opened this issue Nov 9, 2022 · 4 comments

Comments

@itchibahn
Copy link

myalgo.min.js v1.4.1
Unbuntu v22.04.1 LTS
AWS EC2
Apache 2.4.52
Let's Encrypt CertBot SSL

When trying to connect, https://wallet.myalgo.com/bridge/connect pops up and continues to spin for about 10 seconds, then closes without login prompt. The error returned:

TypeError: Cannot read properties of undefined (reading 'WINDOWS_NOT_LOADED')

Works fine without SSL. I've also tried AWS ACM SSL certificate with same error. Are these SSL incompatible with MyAlgo?

@M-Picco
Copy link
Contributor

M-Picco commented Nov 10, 2022

Hi @itchibahn

I'm curious about the error you are getting. The property WINDOW_NOT_LOADED is a string field from a constants object (used here), which somehow is undefined.

How's the source imported? Maybe something regarding HTTPS that is blocking or affecting the contents of the script? Does this happen in other browser and devices?

@itchibahn
Copy link
Author

Thanks for the response.
I'm importing the source at html template, as django backend does not allow JS import.
{index.html}

	<script src="{% static 'js/algosdk.min.js' %}"></script>
	<script src="{% static 'js/myalgo.min.js' %}"></script>

I've tried 2 different SSL certificate providers, as I thought it was a certificate issue. This happens on Edge, Firefox, and Chrome. I'm curious if it's an issue with wsgi, if so, I'll have to start over.

@M-Picco
Copy link
Contributor

M-Picco commented Nov 11, 2022

I've managed to reproduce the error in a small django demo project. However, I haven't yet been able to point out the issue, but I'll try to investigate it as time allows.

@itchibahn
Copy link
Author

Thank you.

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