#Can't create shareable link in API playground
1 messages ยท Page 1 of 1 (latest)
hmm, do you have the error printed in the console/devtools?
Can you paste the query you're trying to share also Solomon please?
Just tried sharing from mobile and worked here
Same 
New tab, still doesn't work for me
note: new tab doesn't clear the contents, I don't know how to "start fresh"
it's the same local edits following me everywhere
(different from golang playground where each tab is a reset)
@jolly lichen we're doing that on purpose since the last query that you wrote will be there when you come back.
If you want to start fress there's a + sign at the top right which creates a new editor tab
ah, found it ๐
still can't share anything
will try logging out and back in
So if I understand correctly, my account has only one global graphiql sandbox, with any number of tabs within it?

Correct
Can you check your browser network tab to see if the request that's made to /share fails please?
Also doing a hard refresh on the page (CMD+shift+r) might help
Oh! For some reason you can't call that endpoint? ๐ค
1
1
11 B
177 B
0
Preview
Headers
Cookies
Sizes
Timing
Security
Summary
URL: https://api.dagger.cloud/playgrounds/share
Status: 200
Source: Network
Address: 52.4.173.59:443
Initiator:
187-ba4b4012095e6f8c.js:1:10088
Request
:method: POST
:scheme: https
:authority: api.dagger.cloud
:path: /playgrounds/share
Accept: */*
Origin: https://play.dagger.cloud
Content-Type: text/plain;charset=UTF-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlNkSTJKWkpTOUEtZVR1YTktNjZTTyJ9.eyJpc3MiOiJodHRwczovL2F1dGguZGFnZ2VyLmNsb3VkLyIsInN1YiI6ImdpdGh1YnwyOTU2NSIsImF1ZCI6WyJodHRwczovL2FwaS5kYWdnZXIuY2xvdWQiLCJodHRwczovL2RhZ2dlci1pby51cy5hdXRoMC5jb20vdXNlcmluZm8iXSwiaWF0IjoxNjY4NzI5NzA1LCJleHAiOjE2Njg4MTYxMDUsImF6cCI6IlRaeUtNbzRMUGhSdHZvbFU4T3ZKSFhlMXYzMDNwaFQ1Iiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBlbWFpbCBvZmZsaW5lX2FjY2VzcyJ9.lz3nGJPa4hXnzhTeIufczLKRLzVjW7AOQxsBu6wl9jHJRx3Ib0E42x0eT66JxwvsiMFGHSmKnEeAtgTIyl3T5RXdCLIrsjGtHVeO4ybS30wfSlEFa8k8AYV3kuo89pcXT5k01N6nj_83bXiNwwo95KgedLi64HAnIBAYdd9l2nPj7icvrDXUrAXXNSRgRBK02Kgbq2v3o1mmsiH5dCaBF80AFoAchMMagRTRUhU-A9zQOaaD6ZRRoHQH0EjF0sTlF0xB8MsZPydAIH6McP7td8QBeCBDgKiVwE9jqondRIwNQ1mITv1IhuGEpH71dStSK3tcGaO2U4a4X-C-MoahGw
Referer: https://play.dagger.cloud/playground
Content-Length: 188
Host: api.dagger.cloud
Accept-Language: en-US,en;q=0.9
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Response
:status: 200
Access-Control-Allow-Credentials: true
Content-Type: text/plain; charset=utf-8
Access-Control-Expose-Headers: Link
Access-Control-Allow-Origin: *
Date: Fri, 18 Nov 2022 00:06:02 GMT
Content-Length: 11
Vary: Origin
Request Data
MIME Type: text/plain
Encoding: UTF-8
Request Data:
the network call seems to work . but there's a js error in the log (first screenshot)
Ok.. that seemed to work... Looks website related @wet stirrup
i think that the app is not allowed to copy to you clipboard
Ohh that makes sense actually
But I used that feature before, on that computer (I think?)
writeText is the api that copies the url to your clipboard
maybe not that computer
OSx ๐
This is Safari on Mac OS
That makes sense. @wet stirrup can we disable that until we test it properly?
Now I see why the Go playground doesn't do that
yep, sure
I'm not seeing any security warning or settings I could change
Is sharing just broken for all Mac OS?
I am confident I used it on at least one Mac (maybe not this one)
Since a few hours yes. Because we merged something that tries to copy the share URL automatically to your clipboard but seems like we're not handling errors correctly
From what I read before, the user has to explicitly touch a button that copies to your clipboard, like in Cloud Europa or even the snippets in the docs
In this case, the button does other things, so I guess the browser sees it as a security risk and throws an error
Makes sense. Funny that doesn't happen in Linux. Land of YOLO

ah! makes sense
you only linux once
ok, tried to implement it the "safari way" but ran into issues
disabling automatic copy to clipboard for now
https://github.com/dagger/dagger.io/pull/1206 @steel swan ๐