altair icon indicating copy to clipboard operation
altair copied to clipboard

Copy as curl is not clickable on macos

Open simPod opened this issue 4 years ago • 14 comments

Describe the bug

Cannot click on Copy as cUrl button.

To Reproduce Steps to reproduce the behavior:

  1. Prepare query
  2. Click on Copy as Curl
  3. See error

Expected behavior

curl is in clipboard

Screenshots

image

Desktop (please complete the following information):

  • OS: macos bigsur
  • Platform: desktop (brewed)
  • Version 3.2.1 (3.2.1.6808)

simPod avatar Feb 25 '21 13:02 simPod

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.

imolorhe avatar Feb 27 '21 01:02 imolorhe

Not sure how to debug though...

2021-03-02 09-55-27 2021-03-02 09_56_17

simPod avatar Mar 02 '21 08:03 simPod

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

imolorhe avatar Mar 02 '21 10:03 imolorhe

Hm, it's empty :/ nothing happens there. Just upgraded to v 3.2.2 and happens there as well.

simPod avatar Mar 10 '21 12:03 simPod

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!

simPod avatar Mar 19 '21 08:03 simPod

I'll take a look if an error would cause it to fail

imolorhe avatar Mar 19 '21 09:03 imolorhe

Looks like there should be an error logged in the console if it fails.

imolorhe avatar Mar 19 '21 09:03 imolorhe

yup but it was completely empty. Maybe some debug mode could be introduced but it's not critical I think.

simPod avatar Mar 19 '21 09:03 simPod

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.

imolorhe avatar Mar 19 '21 10:03 imolorhe

Aight, will use in case of another issue. Thanks!

simPod avatar Mar 22 '21 06:03 simPod

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.

alexhatdailypay avatar Sep 14 '21 13:09 alexhatdailypay

It still happens on Version 5.0.9 (5.0.9).

I cannot copy curl when there are no variables set.

simPod avatar Dec 13 '22 16:12 simPod