bendevorg / bendevorg/reporter
TypeError: String.isString is not a function
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
View details in Rollbar: [https://rollbar.com/guiconti/reporter/items/3/](https://rollbar.com/guiconti/reporter/items/3/)
```
TypeError: String.isString is not a function
File "/Users/guiconti/GitHub/reporter/server/utils/validator.js", line 15, in Object.exports.isValidString.stringToValidate [as isValidString]
return String.isString(stringToValidate) && stringToValidate.trim().length > 0;
File "/Users/guiconti/GitHub/reporter/server/controllers/sendError.js", line 31, in module.exports
if (!validator.isValidString(data.item.title))
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/layer.js", line 95, in Layer.handle [as handle_request]
fn(req, res, next);
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/route.js", line 137, in next
layer.handle_request(req, res, next);
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/route.js", line 112, in Route.dispatch
next();
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/layer.js", line 95, in Layer.handle [as handle_request]
fn(req, res, next);
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/index.js", line 281, in
return layer.handle_request(req, res, next);
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/index.js", line 354, in param
return done();
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/index.js", line 365, in param
return param();
File "/Users/guiconti/GitHub/reporter/node_modules/express/lib/router/index.js", line 410, in Function.process_params
param();
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in server/utils/validator.js at the reported isValidString implementation, then inspect server/controllers/sendError.js to understand how it validates data.item.title. Run the existing project checks or reproduce the send-error request, and consider the issue done when string validation no longer raises this TypeError and invalid titles are handled correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100