[BUG] Marketplaces doesn't load
Describe the bug In the latest update on Mac in Safari, when navigating from home to Marketplaces page, the page loads blank.
To Reproduce Steps to reproduce the behavior:
- Launch Flowise go to localhost 3000
- Click on Marketplaces in the side bar
- See empty page
Are you able to share an entry in the server error log?
Hi there, I successfully ran my application on localhost:3000 using both Yarn and Docker Compose. It's working flawlessly in both environments. Mac: M2 Pro Browser: Safari
@mkarreth Could you give a little more description about this?
@Rai-Sahil Here is what I found. On the clean VM everything works fine, but on my mac after upgrading 1.5.0 -> 1.5.1 marketplaces page fails with following error:
And this happens because of this:
Payload should return data object instead there is page
@Renegate Thanks for Clarification.
I ran v1.5.1 as well. But somehow it still seems fine to me. I ran flowise first by installing the v1.5.1 code (then running it using yarn) and then by installing it globally with npm.
In both the scenarios it seems good tbh. I guess I'm running it wrong. Can I ask you how did you ran it?
Sorry for delay here. Here the console logs for when Safari doesn't load it. I am on 1.5.1.
Looks like a portion of the react has a height attribute error (rem vs. em).
[Error] Error: Invalid value for <svg> attribute height="1.3rem"
b (main.7ab397e2.js:2:423022)
Kl (main.7ab397e2.js:2:506793)
xc (main.7ab397e2.js:2:529205)
wc (main.7ab397e2.js:2:529086)
yc (main.7ab397e2.js:2:528953)
vc (main.7ab397e2.js:2:528816)
cc (main.7ab397e2.js:2:525932)
Ho (main.7ab397e2.js:2:466526)
(anonymous function) (main.7ab397e2.js:2:523529)
[Error] SyntaxError: JSON Parse error: Unexpected identifier "undefined"
parse
(anonymous function) — index.js:119
os — react-dom.production.min.js:244:332
Sc — react-dom.production.min.js:286:114
(anonymous function) — react-dom.production.min.js:282:391
k — scheduler.production.min.js:13:205
T — scheduler.production.min.js:14:128
(anonymous function) (6708.90a40146.chunk.js:1:2854)
os (main.7ab397e2.js:2:513386)
Sc (main.7ab397e2.js:2:533614)
(anonymous function) (main.7ab397e2.js:2:530204)
k (main.7ab397e2.js:2:580037)
T (main.7ab397e2.js:2:580571)
[Error] TypeError: undefined is not a function (near '...F.data.map...')
(anonymous function) — index.js:158
map
k — index.js:152
_i — react-dom.production.min.js:167:139
Ol — react-dom.production.min.js:197:261
wc — react-dom.production.min.js:280:392
yc — react-dom.production.min.js:280:323
vc — react-dom.production.min.js:280:180
ic — react-dom.production.min.js:271:91
ac — react-dom.production.min.js:268:432
k — scheduler.production.min.js:13:205
T — scheduler.production.min.js:14:128
fl (main.7ab397e2.js:2:491500)
(anonymous function) (main.7ab397e2.js:2:491726)
Wa (main.7ab397e2.js:2:473142)
xs (main.7ab397e2.js:2:521094)
ws (main.7ab397e2.js:2:520527)
bs (main.7ab397e2.js:2:520063)
(anonymous function) (main.7ab397e2.js:2:531900)
kc (main.7ab397e2.js:2:532413)
ac (main.7ab397e2.js:2:524873)
k (main.7ab397e2.js:2:580037)
T (main.7ab397e2.js:2:580571)
[Error] TypeError: undefined is not a function (near '...F.data.map...')
(anonymous function) (main.7ab397e2.js:2:532323)
kc (main.7ab397e2.js:2:532413)
ac (main.7ab397e2.js:2:524873)
k (main.7ab397e2.js:2:580037)
T (main.7ab397e2.js:2:580571)
Alright, for me this steps solves the problem: npm cache clean --force and npm install -g flowise -f
Negative, still not loading on my end. I am on 1.6.0 now.
Dug a bit more seems to be similar type errors in the marketplaces index.js.
index.js:131 SyntaxError: "undefined" is not valid JSON
at JSON.parse (<anonymous>)
at index.js:119:43
TypeError: F.data.map is not a function
at index.js:158:73
ncaught TypeError: F.data.map is not a function
at index.js:158:73
I have the same problem, except it does it for both Marketplaces and Variables
Hmm...
Interestingly, I ran it every way listed and somehow it still works fine for me. Strange.
In the latest release version, this should be fixed by this PR