JKHeadley / JKHeadley/appy

Image Upload as a Visitor

Open
#5 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Vue
Stars
257
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am testing the demo, and in a local install and at https://demo.appyapp.io/images/create
a visitor cannot upload an image. In the frontend, it's stuck "Finalizing..." and on the backend, the local logs show:
`[18:08:09.642] 8433 ERROR node_modules/rest-hapi/utilities/handler-helper.js:380:11 api/generate-routes/Visitor — ValidationError:visitor validation failed: ip: Path `ip` is required.
[18:08:09.642] 8433 ERROR node_modules/rest-hapi/utilities/handler-helper.js:380:11 api/generate-routes/Visitor — at new ValidationError (/Users/don/WebstormProjects/appy/backend/node_modules/mongoose/lib/error/validation.js:27:11)
[18:08:09.642] 8433 ERROR node_modules/rest-hapi/utilities/handler-helper.js:380:11 api/generate-routes/Visitor — at model.Document.invalidate (/Users/don/WebstormProjects/appy/backend/node_modules/mongoose/lib/document.js:1725:32)
[18:08:09.642] 8433 ERROR node_modules/rest-hapi/utilities/handler-helper.js:380:11 api/generate-routes/Visitor — at /Users/don/WebstormProjects/appy/backend/node_modules/mongoose/lib/document.js:1597:17
[18:08:09.642] 8433 ERROR node_modules/rest-hapi/utilities/handler-helper.js:380:11 api/generate-routes/Visitor — at /Users/don/WebstormProjects/appy/backend/node_modules/mongoose/lib/schematype.js:785:9
[18:08:09.642] 8433 ERROR node_modules/rest-hapi/utilities/handler-helper.js:380:11 api/generate-routes/Visitor — at process._tickCallback (internal/process/next_tick.js:176:11)
Debug: internal, implementation, error
Error: There was an error creating the resource.
at _createHandler (/Users/don/WebstormProjects/appy/backend/node_modules/rest-hapi/utilities/handler-helper.js:384:20)
at
at process._tickCallback (internal/process/next_tick.js:182:7)
[18:09:07.836] 8433 LOG api/user/GetAll — getImages + params({"ownerId":"5b4133607a3c7c2063c8bbca"}), query({"isDeleted":false}), payload(null)`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure at https://demo.appyapp.io/images/create and inspect the frontend state when it remains "Finalizing...". Then trace the backend api/generate-routes/Visitor path using the reported Mongoose validation error for the required ip field. Done means a visitor can upload an image successfully in both local and demo environments without that validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.