paperspace-node icon indicating copy to clipboard operation
paperspace-node copied to clipboard

Error while trying to create script

Open wkoziej opened this issue 7 years ago • 2 comments

Hi,

I'm trying to create script on my machine. According to https://paperspace.github.io/paperspace-node/scripts.html#.create I've created sample code

paperspace.scripts.create({
    scriptName: 'Run docker at start',
    scriptFile: 'startup.sh', 
    scriptDescription: 'A startup script', // optional
    isEnabled: true, // optional
    runOnce: false, // optional
    machineId: machineId, // optional
}, function(err, res) {
    console.log(res);
});

and what I'm getting is

{ error:
   { name: 'Error',
     status: 404,
     message: 'script not uploded - temporary' } }

Could you explain this, please? Of course other requests are working ( e.g. I can start and stop machines using paperspace-node)

wkoziej avatar Aug 16 '18 06:08 wkoziej

@wkoziej I'm also running into this issue with a go paperspace client. https://github.com/TimDurward/go-paperspace/blob/master/scripts.go#L26-L40

I don't think it's an issue with the node client, but rather Paperspace's internal service - But just an assumption :)

Maybe a member like @dte or @sanfilip can chime in on the reason.

TimDurward avatar Dec 08 '18 03:12 TimDurward

Support got back to me about this ticket - They are aware and have taken action. @wkoziej I'd follow Paperspace's Release Notes, it's been noted their next release should have it fixed.

TimDurward avatar Dec 10 '18 21:12 TimDurward