Running tuist organization invite
with a non-existing organization should be handled gracefully instead of the current cryptic message as we don't expect a not found response from the server.
tuist organization invite non-existing-org [email protected]
We received an error that we couldn't handle:
- Localized description: Client error - operationID: createInvitation, operationInput: Input(path: TuistServer.Operations.createInvitation.Input.Path(organization_name: "tuist/tuist"), query: TuistServer.Operations.createInvitation.Input.Query(), headers: TuistServer.Operations.createInvitation.Input.Headers(), cookies: TuistServer.Operations.createInvitation.Input.Cookies(), body: Optional(TuistServer.Operations.createInvitation.Input.Body.json(TuistServer.Operations.createInvitation.Input.Body.jsonPayload(invitee_email: "[email protected]")))), request: path: /api/organizations/tuist/tuist/invitations, query: <nil>, method: HTTPMethod(value: OpenAPIRuntime.HTTPMethod.(unknown context at $105563f38).OpenAPIHTTPMethod.POST), header fields: [accept: application/json, content-type: application/json; charset=utf-8], body (prefix): {
"invitee_email" : "[email protected]"
}, baseURL: https://cloud.tuist.io, response: status: 404, header fields: [Content-Length: 53, x-request-id: 4ED83A99-FFE8-4834-B59A-F662C1910569,F7B77EE4-9C43-4861-959E-0B74B153ED1E, Content-Encoding: gzip, Cache-Control: max-age=0, private, must-revalidate, Date: Tue, 17 Sep 2024 12:46:46 GMT, Via: 2 fly.io, Vary: accept-encoding, Content-Type: application/json; charset=utf-8, Server: Fly/0049c9a9 (2024-09-10), fly-request-id: 01J800ASQF0Y4G222XYHJZQJ9E-lhr], body: {"errors":{"detail":"Not Found"}}, underlying error: DecodingError: keyNotFound CodingKeys(stringValue: "message", intValue: nil) - at : No value associated with key CodingKeys(stringValue: "message", intValue: nil) ("message"). (underlying error: <nil>)
- Error: Client error - operationID: createInvitation, operationInput: Input(path: TuistServer.Operations.createInvitation.Input.Path(organization_name: "tuist/tuist"), query: TuistServer.Operations.createInvitation.Input.Query(), headers: TuistServer.Operations.createInvitation.Input.Headers(), cookies: TuistServer.Operations.createInvitation.Input.Cookies(), body: Optional(TuistServer.Operations.createInvitation.Input.Body.json(TuistServer.Operations.createInvitation.Input.Body.jsonPayload(invitee_email: "[email protected]")))), request: path: /api/organizations/tuist/tuist/invitations, query: <nil>, method: HTTPMethod(value: OpenAPIRuntime.HTTPMethod.(unknown context at $105563f38).OpenAPIHTTPMethod.POST), header fields: [accept: application/json, content-type: application/json; charset=utf-8], body (prefix): {
"invitee_email" : "[email protected]"
}, baseURL: https://cloud.tuist.io, response: status: 404, header fields: [Content-Length: 53, x-request-id: 4ED83A99-FFE8-4834-B59A-F662C1910569,F7B77EE4-9C43-4861-959E-0B74B153ED1E, Content-Encoding: gzip, Cache-Control: max-age=0, private, must-revalidate, Date: Tue, 17 Sep 2024 12:46:46 GMT, Via: 2 fly.io, Vary: accept-encoding, Content-Type: application/json; charset=utf-8, Server: Fly/0049c9a9 (2024-09-10), fly-request-id: 01J800ASQF0Y4G222XYHJZQJ9E-lhr], body: {"errors":{"detail":"Not Found"}}, underlying error: DecodingError: keyNotFound CodingKeys(stringValue: "message", intValue: nil) - at : No value associated with key CodingKeys(stringValue: "message", intValue: nil) ("message"). (underlying error: <nil>)
If you think it's a legit issue, please file an issue including the reproducible steps: https://github.com/tuist/tuist/issues/new/choose
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose
4.26.0
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too