#Can't create shareable link in API playground

1 messages ยท Page 1 of 1 (latest)

jolly lichen
#

When clicking "share" in the playground, I get this error:

#

cc @wet stirrup @steel swan

wet stirrup
#

hmm, do you have the error printed in the console/devtools?

steel swan
#

Can you paste the query you're trying to share also Solomon please?

#

Just tried sharing from mobile and worked here

jolly lichen
#

I can't paste it here, it's too big ๐Ÿ˜‰

#

Let me put it in a gist

wet stirrup
#

I am able to execute it + share actually

steel swan
#

Same thinkies

jolly lichen
#

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)

steel swan
#

@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

jolly lichen
#

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?

steel swan
#

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

jolly lichen
steel swan
#

Oh! For some reason you can't call that endpoint? ๐Ÿค”

jolly lichen
#
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)

steel swan
#

Ok.. that seemed to work... Looks website related @wet stirrup

wet stirrup
#

i think that the app is not allowed to copy to you clipboard

steel swan
#

Ohh that makes sense actually

jolly lichen
#

But I used that feature before, on that computer (I think?)

wet stirrup
#

writeText is the api that copies the url to your clipboard

jolly lichen
#

maybe not that computer

steel swan
#

OSx ๐Ÿ˜‰

jolly lichen
#

This is Safari on Mac OS

steel swan
#

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

wet stirrup
#

yep, sure

jolly lichen
#

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)

steel swan
wet stirrup
#

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

steel swan
wet stirrup
jolly lichen
#

you only linux once

wet stirrup
#

ok, tried to implement it the "safari way" but ran into issues

#

disabling automatic copy to clipboard for now