Unable to Cast Ballot
See original GitHub issueHi @horeaporutiu, thank you for sharing this code.
I was able to register a drivers license, but unable to cast a ballot. I’m receiving the following error upon submission:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler (Promise/async): "TypeError: Cannot read property 'Key' of undefined"
found in
---> <Response> at src/components/CastBallot.vue
The data array from await PostsService.queryWithQueryString('election')
is empty.
Could you point me in right direction on what could I do to fix it?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Know Your Rights | Voting Rights | American Civil Liberties ...
What are my general rights on Election Day? The poll worker says my name is not on the list of registered voters; I...
Read more >Don't Count Them Out Just Because They Can't Cast A Ballot
Ain't no party like a Ready 2 Vote party. How do you engage high schoolers in the voting process? Start by having a...
Read more >Provisional Ballots - National Conference of State Legislatures
They provide a fail-safe mechanism for voters who arrive at the polls on Election Day and whose eligibility to vote is uncertain. This...
Read more >Absentee Voting | New York State Board of Elections
Absentee Voting. November 8, 2022: General Election Day Early Voting October 29 – November 6. Request Absentee Ballot Online or by Mail by...
Read more >1VAC20-60-40. When ballot cast. - Virginia Law
A. A voter, voting in person on election day or voting absentee in-person, has not voted until a permanent record of the voter's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@horeaporutiu thank you for your help. It was simply a matter of calling the
init
function as you said.@elissonmichael
Can you post the logs from the server?
Can you do a queryAll in the UI, and see if there is a election with an electionId in the data that is returned back?
Also, is there any problem when casting a vote from a voterId that doesn’t exist? i.e. do you get the error message like this one?