scratch-api icon indicating copy to clipboard operation
scratch-api copied to clipboard

user.cloudSession is undefined

Open Thinkright20 opened this issue 2 years ago • 7 comments

I’m having a new error in my code. I have 2 projects using this api, and now they both say “cannot read properties of user.cloudSession of undefined.”

I wouldn’t have this error up until now. Here is a photo of the code. Is there something wrong with it?

3D8AD4AD-E1A3-46BC-B3F5-793DB73A82A3

Thinkright20 avatar Feb 13 '22 14:02 Thinkright20

This is happening to me as well. Probably due to a change in the Scratch API.

Looky1173 avatar Feb 25 '22 19:02 Looky1173

Check to see if err exists =)

Explosion-Scratch avatar Mar 22 '22 22:03 Explosion-Scratch

Try using scratch3-api (or new-scratch3-api, if you are not on TypeScript) if the answer above does not help. Cloud variables work there fine & it has promise support, so no more callback hell.

gohoski avatar Mar 31 '22 14:03 gohoski

Try using scratch3-api (or new-scratch3-api, if you are not on TypeScript) if the answer above does not help. Cloud variables work there fine & it has promise support, so no more callback hell.

A bit wrong. TypeScript shouldn't actually matter, it compiles to JS anyway. That's a library problem that prevents it from being used in both TypeScript and JavaScript.

Sly-Little-Fox avatar Jun 05 '22 19:06 Sly-Little-Fox

Try using scratch3-api (or new-scratch3-api, if you are not on TypeScript) if the answer above does not help. Cloud variables work there fine & it has promise support, so no more callback hell.

A bit wrong. TypeScript shouldn't actually matter, it compiles to JS anyway. That's a library problem that prevents it from being used in both TypeScript and JavaScript.

Regardless, I have deprecated scratch3-api due to low code quality and bugs. Please switch to @errorgamer2000/scratch-cloud instead.

nexensys avatar Sep 26 '22 17:09 nexensys

Get real

Sly-Little-Fox avatar Sep 28 '22 13:09 Sly-Little-Fox

@Sly-Little-Fox not sure what you mean

nexensys avatar Sep 28 '22 16:09 nexensys