Paperspace / paperspace-node

Paperspace API for node.js
https://www.paperspace.com/core
ISC License
75 stars 15 forks source link

Error while trying to create script #14

Open wkoziej opened 5 years ago

wkoziej commented 5 years ago

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)

TimDurward commented 5 years ago

@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 commented 5 years ago

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.