question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to Cast Ballot

See original GitHub issue

Hi @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? Screenshot from 2020-01-29 15-46-45

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
elissonmichaelcommented, Feb 3, 2020

@horeaporutiu thank you for your help. It was simply a matter of calling the init function as you said.

2reactions
horeaporutiucommented, Jan 29, 2020

@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?

Screen Shot 2020-01-29 at 3 02 38 PM
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found