imgcook / imgcook

Generate pages from any sketch or images.

Home Page:https://imgcook.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

创建 DSL,服务无挂了?

turkyden opened this issue · comments

创建 DSL,服务无挂了?求助!@gindis @yukrain @FeelyChau @aymonYU

image

image

多试两次看下(刚试过可以的,调用了 github 接口不是很稳定),如果还是创建不成功,加钉钉群 @笑翟 手动帮你创建下哈。

多试两次看下(刚试过可以的,调用了 github 接口不是很稳定),如果还是创建不成功,加钉钉群 @笑翟 手动帮你创建下哈。

感谢反馈!

已解决,原来是已经创建过了,但是提示不是很友好哦,希望抽空把返回的提示优化一下吧,比如【message:该仓库已创建】

辛苦了!

POST https://www.imgcook.com/api/dslManager

{
  body: {name: "ecode", repo: "ecode-standard", description: "bala bala ...", othermanager: "",…}
  ctoken: "7knvDpe4-ddHJeLfUioOYt8HTDzVCOMpVzAc"
  operate: "create"
}
{"status":false,"data":{},"errorMsg":"{\"name\":\"HttpError\",\"status\":422,\"headers\":{\"access-control-allow-origin\":\"*\",\"access-control-expose-headers\":\"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset\",\"connection\":\"close\",\"content-length\":\"258\",\"content-security-policy\":\"default-src 'none'\",\"content-type\":\"application/json; charset=utf-8\",\"date\":\"Tue, 18 May 2021 13:26:32 GMT\",\"referrer-policy\":\"origin-when-cross-origin, strict-origin-when-cross-origin\",\"server\":\"GitHub.com\",\"strict-transport-security\":\"max-age=31536000; includeSubdomains; preload\",\"vary\":\"Accept-Encoding, Accept, X-Requested-With\",\"x-accepted-oauth-scopes\":\"public_repo, repo\",\"x-content-type-options\":\"nosniff\",\"x-frame-options\":\"deny\",\"x-github-media-type\":\"github.v3; format=json\",\"x-github-request-id\":\"5185:9053:D80F95:F10506:60A3C088\",\"x-oauth-scopes\":\"admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages\",\"x-ratelimit-limit\":\"5000\",\"x-ratelimit-remaining\":\"4996\",\"x-ratelimit-reset\":\"1621346756\",\"x-ratelimit-resource\":\"core\",\"x-ratelimit-used\":\"4\",\"x-xss-protection\":\"0\"},\"request\":{\"method\":\"POST\",\"url\":\"https://api.github.com/orgs/imgcook-dsl/repos\",\"headers\":{\"accept\":\"application/vnd.github.v3+json\",\"user-agent\":\"octokit-rest.js/17.11.2 octokit-core.js/2.5.4 Node.js/12.21.0 (Linux 4.9; x64)\",\"authorization\":\"token [REDACTED]\",\"content-type\":\"application/json; charset=utf-8\"},\"body\":\"{\\\"name\\\":\\\"ecode-standard\\\"}\",\"request\":{}},\"errors\":[{\"resource\":\"Repository\",\"code\":\"custom\",\"field\":\"name\",\"message\":\"name already exists on this account\"}],\"documentation_url\":\"https://docs.github.com/rest/reference/repos#create-an-organization-repository\"}"}