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

[Bug Report] Illegal Invocation in JsQuery #266

Closed
qbx2 opened this issue Feb 17, 2023 · 13 comments
Closed

[Bug Report] Illegal Invocation in JsQuery #266

qbx2 opened this issue Feb 17, 2023 · 13 comments

Comments

@qbx2
Copy link

qbx2 commented Feb 17, 2023

When I run a jsQuery with script=return btoa('1'), it fails with the error message Illegal invocation. My colleague said it worked in v1.1.4 by the way. Anyway, I found a workaround which is to use script=return btoa.call(null, '1') to set this parameter to null, instead of undefined.

@qbx2
Copy link
Author

qbx2 commented Feb 17, 2023

I think this happens only in dockerized environment.

@lmx1117
Copy link
Collaborator

lmx1117 commented Feb 17, 2023

When I run a jsQuery with script=return btoa('1'), it fails with the error message Illegal invocation. My colleague said it worked in v1.1.4 by the way. Anyway, I found a workaround which is to use script=return btoa.call(null, '1') to set this parameter to null, instead of undefined.

are you using 1.1.5 self-hosted OB?

@qbx2
Copy link
Author

qbx2 commented Feb 17, 2023

@lmx1117 I use self-hosted, but the issue also occurs in cloud, too.

@qbx2
Copy link
Author

qbx2 commented Feb 17, 2023

I’m sorry, it only occurs in self-hosted.

@lmx1117
Copy link
Collaborator

lmx1117 commented Feb 20, 2023

I’m sorry, it only occurs in self-hosted.

Got it, thank you, we will check it asap

@lmx1117
Copy link
Collaborator

lmx1117 commented Feb 20, 2023

@qbx2 Hi please update to the beta to see if this is fixed, looking forward to your feedback

@qbx2
Copy link
Author

qbx2 commented Feb 20, 2023

No, it isn't fixed. Same error message.

@qbx2
Copy link
Author

qbx2 commented Feb 20, 2023

Tested with:

REPOSITORY                    TAG       IMAGE ID       CREATED      SIZE
openblocksdev/openblocks-ce   beta      e7d6a721e5b7   2 days ago   1.38GB

@qbx2
Copy link
Author

qbx2 commented Feb 20, 2023

I'll try with explicit sha256 digest: docker run -it --platform linux/amd64 -p 3000:3000 openblocksdev/openblocks-ce@sha256:b3f68e27305e8993e509a79e06fa17c4abece6386ccff87accf0c5ff6870c612

@qbx2
Copy link
Author

qbx2 commented Feb 20, 2023

Not working anyway :/

@lmx1117
Copy link
Collaborator

lmx1117 commented Feb 20, 2023

@qbx2 sorry about that 🥲, we will check it again

@YoJayz
Copy link
Contributor

YoJayz commented Feb 24, 2023

Hi @qbx2, we've released Openblocks v1.1.6 and this issue has been fixed.
Please check again and thanks for your patience.

@qbx2
Copy link
Author

qbx2 commented Mar 3, 2023

@YoJayz I just tried v1.1.6 and confirmed that it works. Thank you for support!

@qbx2 qbx2 closed this as completed Mar 3, 2023
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

3 participants