withthegrid / platform-sdk Goto Github PK
View Code? Open in Web Editor NEWAPI client for withthegrid platform
Home Page: https://developer.withthegrid.com
License: MIT License
API client for withthegrid platform
Home Page: https://developer.withthegrid.com
License: MIT License
Sentry reported 3191237812
The previous push to production failed to push some refs:
> @withthegrid/[email protected] release
> ts-node -P tsconfig.cjs.json release/
[[8](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:8):52:40 AM] [semantic-release] › ℹ Running semantic-release version 1[9](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:9).0.2
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/git"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/changelog"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/git"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "success" from "@semantic-release/github"
[8:52:41 AM] [semantic-release] › ✔ Loaded plugin "fail" from "@semantic-release/github"
[8:52:45 AM] [semantic-release] › ✔ Run automated release from branch main on repository https://github.com/withthegrid/platform-sdk.git
[8:52:45 AM] [semantic-release] › ✔ Allowed to push to the Git repository
[8:52:45 AM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/git"
[8:52:45 AM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/git"
[8:52:45 AM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
[8:52:45 AM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
[8:52:45 AM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
[8:52:45 AM] [semantic-release] › ℹ Found git tag v17.42.7 associated with version 17.42.7 on branch main
[8:52:45 AM] [semantic-release] › ℹ Found 3 commits since last release
[8:52:45 AM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: fix: error in analytics dashboard with quantity fields (#174)
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The release type for the commit is patch
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: chore(deps): eslint, types/node (#172)
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: #771 - Analytics map widget (#[10](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:10)1)
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[8:52:45 AM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analysis of 3 commits complete: patch release
[8:52:45 AM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[8:52:45 AM] [semantic-release] › ℹ The next release version is 17.42.8
[8:52:45 AM] [semantic-release] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:45 AM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:45 AM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] [@semantic-release/changelog] › ℹ Update /home/runner/work/platform-sdk/platform-sdk/CHANGELOG.md
[8:52:45 AM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/changelog"
[8:52:45 AM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] [@semantic-release/npm] › ℹ Write version 17.42.8 to package.json in /home/runner/work/platform-sdk/platform-sdk
v17.42.8
[8:52:45 AM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/npm"
[8:52:45 AM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/git"
[8:52:46 AM] [semantic-release] [@semantic-release/git] › ℹ Found 3 file(s) to commit
[8:52:47 AM] [semantic-release] [@semantic-release/git] › ℹ Prepared Git release: v17.42.8
[8:52:47 AM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/git"
[8:52:47 AM] [semantic-release] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:47 AM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[8:52:48 AM] [semantic-release] › ✖ An error occurred while running semantic-release: Error: Command failed with exit code 1: git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release
remote: fatal error in commit_refs
To https://github.com/withthegrid/platform-sdk.git
! [remote rejected] refs/notes/semantic-release -> refs/notes/semantic-release (failure)
error: failed to push some refs to 'https://github.com/withthegrid/platform-sdk.git'
at makeError (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/lib/error.js:60:[11](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:11))
at handlePromise (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/index.js:1[18](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:18):26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async pushNotes (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/lib/git.js:248:3)
at async run (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:[20](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:20)2:5)
at async module.exports (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:268:[22](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:22)) {
shortMessage: 'Command failed with exit code 1: git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release',
command: 'git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release',
escapedCommand: 'git push "https://github.com/withthegrid/platform-sdk.git" "refs/notes/semantic-release"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: 'remote: fatal error in commit_refs \n' +
'To https://github.com/withthegrid/platform-sdk.git\n' +
' ! [remote rejected] refs/notes/semantic-release -> refs/notes/semantic-release (failure)\n' +
"error: failed to push some refs to 'https://github.com/withthegrid/platform-sdk.git'",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Error: Command failed with exit code 1: git push https://github.com/withthegrid/platform-sdk.git refs/notes/semantic-release
remote: fatal error in commit_refs
To https://github.com/withthegrid/platform-sdk.git
! [remote rejected] refs/notes/semantic-release -> refs/notes/semantic-release (failure)
error: failed to push some refs to 'https://github.com/withthegrid/platform-sdk.git'
at makeError (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/lib/error.js:60:11)
at handlePromise (/home/runner/work/platform-sdk/platform-sdk/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async pushNotes (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/lib/git.js:[24](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:24)8:3)
at async run (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:202:5)
at async module.exports (/home/runner/work/platform-sdk/platform-sdk/node_modules/semantic-release/index.js:[26](https://github.com/withthegrid/platform-sdk/runs/6074896939?check_suite_focus=true#step:5:26)8:22)
Error: Process completed with exit code 1.```
Axios introduced a breaking change in error handling in v0.27.0 (see axios/axios#3645 for details). Beware: until v1 they mark breaking changes by upping the minor version.
You would expect a CommsRequestError
, which would be shown in the client as:
The server cannot be reached. Check status.withthegrid.com to identify whether this is caused by withthegrid or your browser/ connection
. Instead, we see The requested resource cannot be found.
.
This is annoying https://github.com/withthegrid/platform-sdk/pull/200/files#r869605607
the encoding is sometimes hex and sometimes not. This leads to more changes in the index.html than strictly needed.
-create a pr in the platform-sdk project
While upgrading to version 6.1.0 of joi2swagger the library fails to validate the open api specification.
With the old version in place we don't generate very detailed insights into fields
But with the new version in place we reference a component that we don't separately have as a component.
update joi2swagger to version 6.1.0 and run the build documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.