8000
Skip to content

fix(core): Surface enterprise trial error message#10267

Merged
ivov merged 1 commit intomasterfrom
pay-1796-add-error-response-to-self-serve-enterprise-trial-error
Aug 2, 2024
Merged

fix(core): Surface enterprise trial error message#10267
ivov merged 1 commit intomasterfrom
pay-1796-add-error-response-to-self-serve-enterprise-trial-error

Conversation

@ivov
Copy link
Copy Markdown
Member
@ivov ivov commented Jul 31, 2024

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jul 31, 2024
Copy link
Copy Markdown
Contributor
@netroy netroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if surfacing license server error responses to the end user would solve anything, but I also don't see any issue with merging this as it is, and revisiting this later 👍🏽

const errorMsg =
(error as AxiosError<{ message: string }>).response?.data?.message ?? error.message;

throw new BadRequestError(errorMsg);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is relying on the error message that the license server returns. Maybe we should update the license server to return error codes, so that we can map those to human readable errors in this repo, instead of having to update the license server every time product wants to change the error that gets displayed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is relying on the error message that the license server returns.

This is in a workflow, but I agree with the general principle.

@github-actions
Copy link
Copy Markdown
Contributor
github-actions bot commented Aug 2, 2024

✅ All Cypress E2E specs passed

@cypress
Copy link
Copy Markdown
cypress bot commented Aug 2, 2024



Test summary

390 0 0 0Flakiness 2


Run details

Project n8n
Status Passed
Commit 2b721be
Started Aug 2, 2024 9:55 AM
Ended Aug 2, 2024 9:59 AM
Duration 04:37 💡
OS Linux Debian -
Browser Electron 118

View run in Cypress Cloud ➡️


Flakiness

30-langchain.cy.ts Flakiness
1 Langchain Integration > should be able to open and execute Basic LLM Chain node
30-editor-after-route-changes.cy.ts Flakiness
1 Editor actions should work > after switching between Editor and Executions

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

@ivov ivov merged commit 432ac1d into master Aug 2, 2024
@ivov ivov deleted the pay-1796-add-error-response-to-self-serve-enterprise-trial-error branch August 2, 2024 10:01
MiloradFilipovic added a commit that referenced this pull request Aug 2, 2024
* master:
  refactor(core): Clean up event relays (no-changelog) (#10284)
  fix(editor): Fix execution retry button (#10275)
  feat(core): Show sub-node error on the logs pane. Open logs pane on sub-node error (#10248)
  refactor(core): Move instanceRole to InstanceSettings (no-changelog) (#10242)
  feat(core): Allow filtering executions and users by project in Public API  (#10250)
  fix(core): Make execution and its data creation atomic (#10276)
  refactor(core): Mark schema env vars used by cloud hooks (no-changelog) (#10283)
  ci: Fix DB tests (no-changelog) (#10282)
  feat(core): Support create, delete, edit role for users in Public API (#10279)
  refactor(core): Decouple post workflow execute event from internal hooks (no-changelog) (#10280)
  feat(core): Allow transferring credentials in Public API (#10259)
  feat(core): Support create, read, update, delete projects in Public API (#10269)
  ci: Introduce lint rule `no-type-unsafe-event-emitter` (no-changelog) (#10254)
  fix(core): Surface enterprise trial error message (#10267)
  fix(editor): Enable moving resources only if team projects are available by the license (#10271)
  fix(core): Upgrade tournament to address some XSS vulnerabilities (#10277)

# Conflicts:
#	packages/cli/src/Server.ts
@github-actions github-actions bot mentioned this pull request Aug 7, 2024
@janober
Copy link
Copy Markdown
Member
janober commented Aug 7, 2024

Got released with n8n@1.54.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0