Code Monkey home page Code Monkey logo

serverless-scripting-cli's People

Contributors

bgabler avatar dependabot[bot] avatar edskeizer avatar freave-public avatar klaude avatar stackpathtladd2 avatar tladd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

serverless-scripting-cli's Issues

Missing site_id in global scope errors

If I have site_id in my script block, I shouldn't really need to set a global site_id as well. But the CLI will error if I don't define one globally:

Missing required property 'site_id' in your edgeengine.json file.

Easy to work around obviously, but seems like it shouldn't be necessary.

Sharing edgeengine.json across stacks

Looks like we can set the site_id on the global scope OR override it on the per script scope. It would be nice to have the option to do that for the stack_id as well.

invalid ScriptId

The documentation indicates that we can specify our own script id. Maybe this has to be in a GUID format... that's not clear. I thought it would be nice to be able to make it something human readable. So I tried to set "id": "jwt-auth" and got invalid ScriptId

Script doesn't deploy (FetchError: invalid json response body)

Describe the bug

Script doesn't deploy

To reproduce

Install dependencies, add SP token, send a 400kb script on a site.

Expected behavior

Deploying scripts...... Deployment completed.

Actual behavior

yarn run v1.22.10
$ sp-serverless deploy
Refreshing access token...... Refreshing access token done.
Deploying scripts...... ?
An error has occurred (FetchError: invalid json response body at https://gateway.stackpath.com/cdn/v1/stacks/xxx/sites/xxx/scripts/xxx reason: Unexpected end of JSON input). Continue? y/n:

System Details (please complete the following information):

  • CLI Tool Version: 2.1.1 (latest at the date)
  • Operating System: macOS
  • Operating System Version: 11.5.1
  • Shell Information: zsh 5.8

Only deploys first script

When I have more than one script in my edgeengine.json it just deploys whichever one is first. If I flip their order in the edgeengine.json it will deploy the other!

Error when deploying

When I try to deploy a script again it comes up with this...

An error has occurred (a script with this name already exists on this site....

Asks: Continue? y/n:

When I say "y" it gives this error:

Deploying scripts...... An error has occurred. Error: An error occurred when connecting to StackPath host https://gateway.stackpath.com.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.