altair
altair copied to clipboard
Copy as curl is not clickable on macos
Describe the bug
Cannot click on Copy as cUrl button.
To Reproduce Steps to reproduce the behavior:
- Prepare query
- Click on Copy as Curl
- See error
Expected behavior
curl is in clipboard
Screenshots

Desktop (please complete the following information):
- OS: macos bigsur
- Platform: desktop (brewed)
- Version 3.2.1 (3.2.1.6808)
Hey @simPod :wave:,
Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider backing us - every little help counts!
Hey @simPod I don't see any issues with the curl command. It works just fine for me.
Not sure how to debug though...

Maybe there's an error when you click it that doesn't get logged. You could open the developer tools Cmd+Option+I and check if there is an error or some log when you click the button
Hm, it's empty :/ nothing happens there. Just upgraded to v 3.2.2 and happens there as well.
I cannot reproduce. It's working now. There must have been something Altair could not have parsed. Unfortunately, it gave no errors so closing. Thanks!
I'll take a look if an error would cause it to fail
Looks like there should be an error logged in the console if it fails.
yup but it was completely empty. Maybe some debug mode could be introduced but it's not critical I think.
There's actually a debug mode. In the console, you can set _ALTAIR__ENABLE_DEBUG_MODE__ = true. This should enable the debug mode and display all logs and actions.
Aight, will use in case of another issue. Thanks!
Please reopen this issue.
The copy Curl worked initially. Now it doesn't. There was a JavaScript error at some point. Refreshing extension does not fix. Closing browser completely and reopening does not fix. Had to uninstall extension and reinstall extension to fix.
It still happens on Version 5.0.9 (5.0.9).
I cannot copy curl when there are no variables set.