OpenComplaintNetwork icon indicating copy to clipboard operation
OpenComplaintNetwork copied to clipboard

Error while registering a new complaint

Open farhanahraf03 opened this issue 6 years ago • 15 comments

Sir, I have successfully started the localhost server but I am unable to register a complaint on the OCN. Please help. Screenshot from 2019-10-08 23-38-54

farhanahraf03 avatar Oct 08 '19 18:10 farhanahraf03

Open the console window and see if there are any error messages.

upperwal avatar Oct 09 '19 15:10 upperwal

Compiled with warnings.

./src/Components/Pages/Accounts/accounts.js Line 44: 'i' is already defined no-redeclare

./src/Components/Pages/View/view.js Line 55: Expected '===' and instead saw '==' eqeqeq Line 57: Expected '===' and instead saw '==' eqeqeq Line 62: Expected '===' and instead saw '==' eqeqeq Line 64: Expected '===' and instead saw '==' eqeqeq Line 66: Expected '===' and instead saw '==' eqeqeq Line 68: Expected '===' and instead saw '==' eqeqeq Line 76: Expected '===' and instead saw '==' eqeqeq Line 79: Missing radix parameter radix Line 94: Expected '===' and instead saw '==' eqeqeq Line 94: Expected '===' and instead saw '==' eqeqeq Line 96: Expected '===' and instead saw '==' eqeqeq Line 100: Missing radix parameter radix Line 113: Expected '===' and instead saw '==' eqeqeq Line 115: Missing radix parameter radix Line 127: Expected '===' and instead saw '==' eqeqeq Line 127: Expected '===' and instead saw '==' eqeqeq Line 163: Missing radix parameter radix Line 209: 'context' is already defined no-redeclare Line 211: 'p' is assigned a value but never used no-unused-vars Line 232: Expected '===' and instead saw '==' eqeqeq Line 238: Expected '===' and instead saw '==' eqeqeq Line 243: Expected '===' and instead saw '==' eqeqeq Line 243: Expected '===' and instead saw '==' eqeqeq Line 337: 'context' is assigned a value but never used no-unused-vars Line 344: 'i' is already defined no-redeclare

./src/Components/Pages/Register/register.js Line 56: Missing radix parameter radix Line 57: Missing radix parameter radix Line 75: Missing radix parameter radix

./src/App.js Line 5: 'Link' is defined but never used no-unused-vars

./src/Components/HeaderComponents/header.js Line 8: 'logo' is defined but never used no-unused-vars Line 19: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text

./node_modules/web3-eth-accounts/src/scrypt.js 17:50-60 Critical dependency: the request of a dependency is an expression

Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before.

farhanahraf03 avatar Oct 10 '19 18:10 farhanahraf03

Are all these warnings or errors? Please help Sir.

farhanahraf03 avatar Oct 10 '19 18:10 farhanahraf03

@farhanahraf03 Right click on the window and goto inspector. Click on the console tab and see if it shows any error. Post them here.

upperwal avatar Oct 14 '19 15:10 upperwal

Error: Invalid JSON RPC response: "" errors.js:42 SyntaxError: expected expression, got '<' bootstrap.min.js:1 The Components object is deprecated. It will soon be removed. localhost:3000

Screenshot from 2019-10-14 23-10-11

farhanahraf03 avatar Oct 14 '19 17:10 farhanahraf03

Is your truffle working?

upperwal avatar Oct 15 '19 06:10 upperwal

Yes, it is working. truffle develop command shows no errors.

farhanahraf03 avatar Oct 15 '19 09:10 farhanahraf03

give me a day or two. will run it and get back to you.

upperwal avatar Oct 15 '19 10:10 upperwal

Thank you very much.

farhanahraf03 avatar Oct 15 '19 13:10 farhanahraf03

@upperwal sir, i still encounter this error.. i read this comment without reading the date, and proposed this as my project.. now i'm stuck with no solution.. 😢x100

abdullah-19 avatar Jun 11 '20 07:06 abdullah-19

Let me try to run it and debug it.

upperwal avatar Jun 11 '20 08:06 upperwal

@abdullah-19 Did some changes. try it now.

upperwal avatar Jun 11 '20 08:06 upperwal

@abdullah-19 thanks... just one question, how can I create new account ? I appreciate your hard work, and this project is really awesome

abdullah-19 avatar Jun 11 '20 13:06 abdullah-19

Can you be more specific?

  • New Blockchain accounts?
  • New Police, Citizen accounts?

upperwal avatar Jun 11 '20 14:06 upperwal

There is only 4 accounts of 3 types.

  • super user
  • citizen
  • police Now if I want to promote someone to police from a citizen Or create a new citizen ?

abdullah-19 avatar Jun 11 '20 15:06 abdullah-19