Add first render example - #10
Conversation
|
@musab123-afk is attempting to deploy a commit to the dazzatron Team on Vercel. A member of the Team first needs to authorize it. |
|
#13 changed Ran both scripts end to end against stage. Both render, both poll, both return a playable mp4. Missing-key path prints the same clean line in both languages. That's the one users hit.
Two stack traces. Both Python.
One line fixes both: Shorter than the six classes it replaces. Network failure says nothing useful.Reproduced against an unresolvable host. Python: Node: Failures names this as one of the three. Rejected key dumps the envelope.Live 403, both languages: The line you want is Languages disagree on a
|
Rebased onto the tightened STANDARDS.md. - blank the .env.example value, URL comment above; README loads .env with set -a / source - state the version floors: Node 20, Python 3.8, requests 2; catch ValueError instead of JSONDecodeError so the requests 2.27 floor goes - catch KeyboardInterrupt and Exception at the top level, no tracebacks - survive a null JSON body with HTTP 200 in Python, same message as Node - print errors[0].detail on a rejected key instead of the envelope - print one identical network-failure line in both languages - fail with the same message in both languages when a done render has no output URL; Node no longer prints undefined and exits 0 - derive the timeout message from MAX_WAIT_* - comment that the sandbox environment is named stage in the URL - drop node_modules/ from .gitignore; the example has no package.json
0de6469 to
57da404
Compare
dazzatronus
left a comment
There was a problem hiding this comment.
Review findings addressed. Approving.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
The very basics of the Shotstack API, and the loop every other example in this cookbook builds on: submit an Edit, poll the render status, and print the output URL, implemented in both Node.js and Python. Companion code for https://shotstack.io/learn/render-your-first-video-shotstack-api/. Verified end-to-end on the sandbox in both languages; failure paths print one actionable line and exit non-zero per STANDARDS.md, and prettier/ruff pass with the repo configs.