Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor crash - Badges response unexpected format (not an array) #5989

Closed
xXG30Xx opened this issue Dec 1, 2023 · 1 comment · Fixed by #6002
Closed

Editor crash - Badges response unexpected format (not an array) #5989

xXG30Xx opened this issue Dec 1, 2023 · 1 comment · Fixed by #6002
Labels
💥crash Bug that is crashing the software

Comments

@xXG30Xx
Copy link

xXG30Xx commented Dec 1, 2023

Describe what you were doing when the crash happened

Saw error

GDevelop version

5.3.181-ec1ebcbf5b57a4623f3ac4eb39a06a26398dc4bd

Platform info

System Version: 13.6.0, Arch: arm64, User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) GDevelop5/5.3.181 Chrome/100.0.4896.143 Electron/18.2.2 Safari/537.36, Platform: darwin

Additional error context

uniqueErrorId: 5b9afd52-c851-489e-9c0a-07823001cf84

TypeError: e.map is not a function
at g (file:///Users/george.zebere/Desktop/GDevelop%205.app/Contents/Resources/app.asar/www/static/js/250.6dc43e30.chunk.js:1:2311715)
at x (file:///Users/george.zebere/Desktop/GDevelop%205.app/Contents/Resources/app.asar/www/static/js/250.6dc43e30.chunk.js:1:2312695)
at jO (file:///Users/george.zebere/Desktop/GDevelop%205.app/Contents/Resources/app.asar/www/static/js/250.6dc43e30.chunk.js:1:1850382)
at ea (file:///Users/george.zebere/Desktop/GDevelop%205.app/Contents/Resources/app.asar/www/static/js/main.dc644a89.js:2:475626)
at Ha (file:/...

Additional component context

in jO
in Unknown
in Ke
in f
in u
in v
in m
in j
in h
in h
in Z
in d
in X
in n
in t
in ge
in n
in We
in et
in t
in Unknown
in Unknown
in v
in pt
in t
in r
in n
in u
in l
in n
in DragDropContext(n)
in ht
in c...
@ClementPasteau
Copy link
Collaborator

Coming from an action on the array of badges here: https://github.com/4ian/GDevelop/blob/master/newIDE/app/src/Utils/GDevelopServices/Badge.js#L40

As if the backend did not return an array, so .map() does not exist on it.

@ClementPasteau ClementPasteau changed the title Crash while using an editor Editor crash - Badges response unexpected format (not an array) Dec 4, 2023
@ClementPasteau ClementPasteau added the 💥crash Bug that is crashing the software label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥crash Bug that is crashing the software
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants