Skip to content

Error while loading an event should be clear and show exact message #1039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sakshiarora386 opened this issue Apr 22, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@sakshiarora386
Copy link
Contributor

sakshiarora386 commented Apr 22, 2025

Version Information

Godspeed Version: 2.5.3
CLI Version (if applicable): 2.9.7

Current Behavior

  • When there is any error in event schema definition or function not found (authz or fn)
  • Swagger is not hitting that api, if there was not responses added in schema definition
  • when there was error in params format, then logs were not showing exact error message

Expected Behavior

  • Show full error log and don't start the service

How will we Solve

  • Show exact error with solution including documentation guides link.

Future Enhancement:

  1. Use the existing schemas for event validations
  2. Framework schemas will be loaded from gs-node-service like (event schema and config schema).
  3. Datasource and eventsource yaml schemas will be loaded from (A) local src folder (eventsources or datasources)/types/{es_name}-schema.yaml} or (B) from respective plugin node_modules folder having name {es_name}-schema.yaml
  4. Generated plugin instance yaml file should always load from this yaml schema file
  5. If yaml schema for plugin is not found, then show a warning with appropriate message.
  6. Create a guide in docs, how to add schema to plugin or your project folder

Screenshots or Screencast

Logs or Traces

Possible Solutions or Workarounds

@sakshiarora386 sakshiarora386 added the bug Something isn't working label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant