Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with example-forum 1.11.2 Latest commit 8f2822b - Expected a field “categoriesIds.3” of type String, got “null” instead #71

Open
adalidda opened this issue Aug 9, 2018 · 3 comments

Comments

@adalidda
Copy link

adalidda commented Aug 9, 2018

Hi,

I am testing the latest version of example-forum and found strange bug when add or edit post.
Some time the edit when well but when I click on edit to update the post that I just created, I got the following error:

Expected a field “categoriesIds.3” of type String, got “null” instead.
Expected a field “categoriesIds.4” of type String, got “null” instead.
Expected a field “categoriesIds.5” of type String, got “null” instead.
Expected a field “categoriesIds.6” of type String, got “null” instead.
Expected a field “categoriesIds.7” of type String, got “null” instead.
Expected a field “categoriesIds.8” of type String, got “null” instead.
Expected a field “categoriesIds.9” of type String, got “null” instead.
Expected a field “categoriesIds.10” of type String, got “null” instead.
Expected a field “categoriesIds.11” of type String, got “null” instead.
Expected a field “categoriesIds.12” of type String, got “null” instead.
Expected a field “categoriesIds.13” of type String, got “null” instead.
Expected a field “categoriesIds.14” of type String, got “null” instead.
Expected a field “categoriesIds.15” of type String, got “null” instead.
Expected a field “categoriesIds.16” of type String, got “null” instead.
Expected a field “categoriesIds.17” of type String, got “null” instead.
Expected a field “categoriesIds.18” of type String, got “null” instead.
Expected a field “categoriesIds.19” of type String, got “null” instead.
Expected a field “categoriesIds.20” of type String, got “null” instead.
Expected a field “categoriesIds.21” of type String, got “null” instead.
Expected a field “categoriesIds.22” of type String, got “null” instead.
Expected a field “categoriesIds.23” of type String, got “null” instead.
Expected a field “categoriesIds.24” of type String, got “null” instead.
Expected a field “categoriesIds.25” of type String, got “null” instead.
Expected a field “categoriesIds.26” of type String, got “null” instead.
Expected a field “categoriesIds.27” of type String, got “null” instead.
Expected a field “categoriesIds.28” of type String, got “null” instead.
Expected a field “categoriesIds.29” of type String, got “null” instead.
Expected a field “categoriesIds.30” of type String, got “null” instead.
Expected a field “categoriesIds.31” of type String, got “null” instead.
Expected a field “categoriesIds.32” of type String, got “null” instead.
Expected a field “categoriesIds.33” of type String, got “null” instead.
Expected a field “categoriesIds.34” of type String, got “null” instead.
Expected a field “categoriesIds.35” of type String, got “null” instead.
Expected a field “categoriesIds.36” of type String, got “null” instead.
Expected a field “categoriesIds.37” of type String, got “null” instead.
Expected a field “categoriesIds.38” of type String, got “null” instead.
Expected a field “categoriesIds.39” of type String, got “null” instead.
Expected a field “categoriesIds.40” of type String, got “null” instead.
Expected a field “categoriesIds.41” of type String, got “null” instead.
Expected a field “categoriesIds.42” of type String, got “null” instead.
Expected a field “categoriesIds.43” of type String, got “null” instead.
Expected a field “categoriesIds.44” of type String, got “null” instead.
Expected a field “categoriesIds.45” of type String, got “null” instead.

Error: GraphQL error: app.edit_document_validation_error
at new ApolloError (modules.js?hash=cc94ba3b8c9ab01501de15c016fe0ade9e14bd78:67329)
at modules.js?hash=cc94ba3b8c9ab01501de15c016fe0ade9e14bd78:68243
at meteor.js?hash=1f49b977b0beabbfeaa0ef0bdb87e0693971b18c:1223

Form.jsx:377 (2) [{…}, {…}]0: id: "errors.expectedType"path: "categoriesIds.3"properties: {name: "categoriesIds.3", value: null, type: "expectedType", dataType: "String"}proto: Object1: id: "errors.expectedType"path: "categoriesIds.4"properties: {name: "categoriesIds.4", value: null, type: "expectedType", dataType: "String"}proto: Objectlength: 2__proto__: Array(0)

Thank You
Adalidda

@calinn
Copy link
Contributor

calinn commented Aug 15, 2018

I got the same bug.
If I don't chose the first category order in the Category collection, it show me a error message.
editmenu2

@calinn
Copy link
Contributor

calinn commented Sep 10, 2018

I think, it fixed in vulcan-starter 1.12.3 repo

@adalidda
Copy link
Author

Great. Thank You calinn for this information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants