955
Views
5
Comments
Solved
Cannot read properties of undefined (reading 'then')
Question
Application Type
Reactive

Getting the below error and unable to sort it out: Any clue?

 Cannot read properties of undefined (reading 'then')

2026-04-01 11-40-30
Mahesh Manchala
Solution

This issue was resolved long back and the root cause of the issue is not handled REST API response properly from the service to UI layer. Thanks for your responses.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Mahesh,

You really need to supply us with more information, this is a very general JavaScript error.

2026-04-01 11-40-30
Mahesh Manchala

Please find the error log:

2021-06-02 20-50-04
Márcio Carvalho

What we can say about this error, is that is a common error as Kilian said.

For example, if you are going to browser, you are going to see a lot of resolutions. For example, this one:

https://stackoverflow.com/questions/64925342/i-got-error-cannot-read-property-then-of-undefined

Can you share the code?


2022-02-28 05-37-25
Ronny

Hi Mahesh,

I also encountered the same issue. I would just create a new action that works in precisely the same way. Somehow it fixes and the error does not appear.

Hope it helps 

2026-04-01 11-40-30
Mahesh Manchala
Solution

This issue was resolved long back and the root cause of the issue is not handled REST API response properly from the service to UI layer. Thanks for your responses.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.