• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Cant access username before Intialization when I try to use an async function to call a promise

Resolved: Cant access username before Intialization when I try to use an async function to call a promise

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

What I’m trying to do here is call the username from the database from the cookie, I tried to just call it though a regular function, but that doesn’t work since I have to wait on the data. then after send the data to the webpage. but my issue is just getting the data itself. I don’t really have much experince with promises, so I’m trying to figure out what’s happening here. thanks for the help.
The Error

Answer:

If you have better answer, please add a comment about this, thank you!

express javascript node.js
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Resolved: How to convert Java bytecode to Webassembly using CheerpJ compiler

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.