waterthetrees / wtt_server

Water The Trees Postgres/Express/Node.js backend
https://waterthetrees.com
Creative Commons Zero v1.0 Universal
0 stars 3 forks source link

Dev environment shows multiple errors from the server #122

Closed mwpark2014 closed 1 year ago

mwpark2014 commented 1 year ago

dev.water.thet

react_devtools_backend.js:4012 [Error handled by ErrorBoundary] TypeError: Cannot read properties of undefined (reading 'liked')
    at wa (AdoptLikeCheckboxes.js:23:13)
    at aa (react-dom.production.min.js:157:137)
    at $a (react-dom.production.min.js:180:154)
    at Hs (react-dom.production.min.js:269:343)
    at Pu (react-dom.production.min.js:250:347)
    at Cu (react-dom.production.min.js:250:278)
    at Zu (react-dom.production.min.js:250:138)
    at vu (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
apiUtils.js:44          GET https://dev.waterthetrees.com/api/treelikes?id=5030676273730779&email=park.mason.w%40gmail.com 502 (Bad Gateway)
react_devtools_backend.js:4012 Error: 502 (Bad Gateway) https://dev.waterthetrees.com/api/treelikes?id=5030676273730779&email=park.mason.w%40gmail.com
    at apiUtils.js:48:13
    at f (regeneratorRuntime.js:72:17)
    at Generator._invoke (regeneratorRuntime.js:55:24)
    at Generator.next (regeneratorRuntime.js:97:21)
    at r (asyncToGenerator.js:3:20)
    at s (asyncToGenerator.js:22:9)
react_devtools_backend.js:4012 TypeError: Cannot read properties of undefined (reading 'liked')
    at wa (AdoptLikeCheckboxes.js:23:13)
    at aa (react-dom.production.min.js:157:137)
    at $a (react-dom.production.min.js:180:154)
    at Hs (react-dom.production.min.js:269:343)
    at Pu (react-dom.production.min.js:250:347)
    at Cu (react-dom.production.min.js:250:278)
    at Zu (react-dom.production.min.js:250:138)
    at vu (react-dom.production.min.js:243:163)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
GET https://dev.waterthetrees.com/api/cities 502 (Bad Gateway)

Image

zoobot commented 1 year ago

Fixed with https://github.com/waterthetrees/wtt_db/pull/45 and crashed pm2 process due to node being started in background already on reload.