Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

feat(api): add application name to error messages #2030

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ app.use((err: unknown, req: Request, res: Response<{ errors: ResponseErrors }>,
detail: err.detail,
problem_type: err.code,
code: err.code,
meta: err.meta,
meta: { ...err.meta, application_name: req.supaglueApplication?.name },
status: err.status.toString(),
},
],
Expand All @@ -146,6 +146,7 @@ app.use((err: unknown, req: Request, res: Response<{ errors: ResponseErrors }>,
meta: {
origin: 'supaglue',
cause: err as any,
application_name: req.supaglueApplication?.name,
},
},
],
Expand Down
20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-account.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-association-schema.api.mdx

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/docs/api/v2/crm/create-contact.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-custom-object-record.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-custom-object-schema.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-lead.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-opportunity.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-property.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/create-standard-object-record.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-account.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-contact.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-custom-object-record.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-custom-object-schema.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-opportunity.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-property.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/get-standard-object-record.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/get-user.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-accounts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-association-schemas.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-associations.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-contacts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-custom-object-records.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-custom-object-schemas.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-leads.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-list-memberships.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-lists.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-opportunities.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-properties-preview.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-standard-object-records.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/crm/list-standard-object-schemas.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/list-users.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/register-property.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/search-contacts.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/search-leads.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-account.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-contact.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-custom-object-record.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-custom-object-schema.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-lead.api.mdx

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/docs/api/v2/crm/update-opportunity.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-property.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/update-standard-object-record.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/upsert-account.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/upsert-association.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/upsert-contact.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/crm/upsert-lead.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/data/list-hubspot-companies.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/data/list-hubspot-contacts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/data/list-salesforce-accounts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/data/list-salesforce-contacts.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/batch-create-sequence-state.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/create-account.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/create-contact.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/create-sequence-state.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/create-sequence-step.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/create-sequence.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/get-account.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/get-contact.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/get-mailbox.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/get-sequence-state.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/get-sequence.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/get-user.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/list-accounts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/list-contacts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/list-mailboxes.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/list-sequence-states.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/list-sequences.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/list-users.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/engagement/search-contacts.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/search-sequence-states.api.mdx

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/docs/api/v2/engagement/update-account.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/engagement/update-contact.api.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/api/v2/engagement/update-sequence-step.api.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/api/v2/engagement/upsert-account.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/enrichment/enrich-person.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/marketing-automation/get-form-fields.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/marketing-automation/list-forms.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/marketing-automation/submit-form.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/metadata/list-custom-objects.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/metadata/list-properties-deprecated.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/metadata/list-standard-objects.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-connection.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-destination.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-entity.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-magic-link.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-provider.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-schema.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/create-sync-config.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-connection-sync-config.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-connection.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-customer.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-entity-mapping.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-entity.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-magic-link.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-provider.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-schema.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/delete-sync-config.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/mgmt/get-connection-sync-config.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-connection.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/get-connections.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-customer.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-customers.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-destination.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-destinations.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-entities.api.mdx

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/docs/api/v2/mgmt/get-entity.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-magic-links.api.mdx

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/docs/api/v2/mgmt/get-provider-user-id.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-provider.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-providers.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-schema.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-schemas.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-sync-config.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/get-sync-configs.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/list-entity-mappings.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/list-field-mappings.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/list-sync-runs.api.mdx

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/docs/api/v2/mgmt/list-syncs.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/pause-sync.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/resume-sync.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/trigger-sync.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/update-destination.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/update-entity.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/update-object-field-mappings.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/update-provider.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/update-schema.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/update-sync-config.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/upsert-connection-sync-config.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/upsert-customer.api.mdx

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/api/v2/mgmt/upsert-entity-mapping.api.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/api/v2/ticketing/create-attachment.api.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/api/v2/ticketing/create-comment.api.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/api/v2/ticketing/create-ticket.api.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/api/v2/ticketing/update-ticket.api.mdx

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions openapi/common/components/schemas/errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ items:
enum: [remote-provider, supaglue]
description: The origin of the error.
example: remote-provider
application_name:
type: string
description: The name of the application that generated the error.
example: MyCompany Production
required:
- origin
additionalProperties: true
Expand Down
5 changes: 5 additions & 0 deletions openapi/v2/actions/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/crm/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/data/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/engagement/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/enrichment/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/marketing-automation/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/metadata/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/mgmt/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions openapi/v2/ticketing/openapi.bundle.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/actions.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/crm.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/data.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/engagement.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/enrichment.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/marketing-automation.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/metadata.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/mgmt.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/schemas/gen/v2/ticketing.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.