alkem-io / client-web

Default web frontend, enabling browsing the Alkemio platform - so the hosted Challenges and communities collaborating around those Challenges.
https://alkem.io
European Union Public License 1.2
15 stars 6 forks source link

BUG: error message displayed to user is missing information from server #644

Closed Comoque1 closed 3 years ago

Comoque1 commented 3 years ago

Describe the bug Invaluable error message is thrown, when user try to create project with short nameID

To Reproduce Steps to reproduce the behavior:

  1. Go to https://dev.cherrytwist.org/ecoverses/
  2. Use admin user
  3. Create challenge, opportunity and navigate to the opportunity
  4. Create a project with short name (i.e. 'tt')
  5. The following error message is thrown: Response not successful: Received status code 400, but should be something like: Project title is less then the required symbol number

image.png

Expected behavior Meaningful error message is thrown, when creating project with short name

techsmyth commented 3 years ago

This is tied to error propagation from server to client.

Ideally the server should always return http 200 and then inside the response detect the error message to give.

techsmyth commented 3 years ago

This error to be fixed with validation on the input on the form

techsmyth commented 3 years ago

Server should be http response code 200, not 400