developmentseed / osm-teams

Teams for OpenStreetMap!
https://mapping.team
MIT License
26 stars 5 forks source link

Silent failure on form post error / no form validation #161

Open guidorice opened 4 years ago

guidorice commented 4 years ago

Go to http://localhost:8989/teams/create

The docker log has:

{ error: value too long for type character varying(255)
teams_1  |     at Connection.parseE (/usr/src/app/node_modules/pg/lib/connection.js:602:11)
teams_1  |     at Connection.parseMessage (/usr/src/app/node_modules/pg/lib/connection.js:399:19)
teams_1  |     at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:121:22)
teams_1  |     at emitOne (events.js:116:13)
teams_1  |     at Socket.emit (events.js:211:7)
teams_1  |     at addChunk (_stream_readable.js:263:12)
teams_1  |     at readableAddChunk (_stream_readable.js:250:11)
teams_1  |     at Socket.Readable.push (_stream_readable.js:208:10)
teams_1  |     at TCP.onread (net.js:601:20)
...

Relates to #105

vgeorge commented 2 years ago

Adding error/success toasts (see https://github.com/developmentseed/osm-teams/issues/49) should help fix this.