primitive-cloud-server icon indicating copy to clipboard operation
primitive-cloud-server copied to clipboard

Cloud Variables Don't Save on Server

Open memer3638 opened this issue 2 years ago • 12 comments

Hello, i'm using this server for testing and when i used this and started it up it says it was on but didn't save anything onto the server which was weird and i'm wondering what's causing it. i'm using it and turning a project into the turbowarp packager.

memer3638 avatar Nov 11 '23 05:11 memer3638

it's possible it's failing to connect? could check the inspect element console for details. Scratch will set the cloud variable value locally even if it fails to connect or update on the server

SheepTester avatar Nov 11 '23 19:11 SheepTester

it's possible it's failing to connect? could check the inspect element console for details. Scratch will set the cloud variable value locally even if it fails to connect or update on the server

No, it is online and up

memer3638 avatar Nov 11 '23 22:11 memer3638

being online doesn't mean the project can connect to it

SheepTester avatar Nov 12 '23 03:11 SheepTester

being online doesn't mean the project can connect to it

And that's about my problem it won't connect or it can't save variables onto it

memer3638 avatar Nov 12 '23 03:11 memer3638

is there an error in the inspect element console

SheepTester avatar Nov 12 '23 05:11 SheepTester

Try with a WebSocket online tester and send a request for it. { "method": "handshake", "project_id": "Test1234" } { "method": "set", "name": "☁ example", "value": "1234" } A JSON file should be created in "cloud-vars" folder, which has the data of "☁ example" variable. If this doesn't happen, then it might be a server problem.

KianiDev avatar Nov 12 '23 06:11 KianiDev

is there an error in the inspect element console

Yeah but I used other cloud servers like turbowarps and they show the same errors but still work completely fine

memer3638 avatar Nov 12 '23 06:11 memer3638

I think the issue was that you where using "wss://" instead of "ws://". "wss://" is for secure web-socket connections (doesn't work because there are no keys or certificates). I also had the issue, but I copy-pasted it when I tried to use the TurboWarp's parameters (?cloud_host=). I went and looked how it worked, then I realized I used a secure connection.

zaid1442011 avatar Jul 29 '24 12:07 zaid1442011

Where is the server hosted on? Some hosting providers don't work with the server.

TriangularDev avatar Jul 30 '24 13:07 TriangularDev

Where is the server hosted on? Some hosting providers don't work with the server.

He is using testing it

zaid1442011 avatar Jul 31 '24 09:07 zaid1442011