Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Marketplaces doesn't load

Open 0sbx1 opened this issue 1 year ago • 2 comments

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:

  1. Launch Flowise go to localhost 3000
  2. Click on Marketplaces in the side bar
  3. See empty page

0sbx1 avatar Feb 22 '24 15:02 0sbx1

Are you able to share an entry in the server error log?

Jaredude avatar Feb 22 '24 17:02 Jaredude

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?

Screenshot 2024-02-26 at 2 20 51 AM Screenshot 2024-02-26 at 2 20 58 AM

Rai-Sahil avatar Feb 26 '24 10:02 Rai-Sahil

@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: image

And this happens because of this: image

Payload should return data object instead there is page

Renegate avatar Feb 27 '24 09:02 Renegate

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

Screenshot 2024-02-27 at 6 20 13 AM

In both the scenarios it seems good tbh. I guess I'm running it wrong. Can I ask you how did you ran it?

Rai-Sahil avatar Feb 27 '24 14:02 Rai-Sahil

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)

0sbx1 avatar Feb 27 '24 16:02 0sbx1

Alright, for me this steps solves the problem: npm cache clean --force and npm install -g flowise -f

Renegate avatar Feb 27 '24 21:02 Renegate

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.

image
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

0sbx1 avatar Feb 28 '24 02:02 0sbx1

I have the same problem, except it does it for both Marketplaces and Variables

EasyAINow avatar Feb 28 '24 14:02 EasyAINow

Hmm...

Interestingly, I ran it every way listed and somehow it still works fine for me. Strange. Screenshot 2024-02-28 at 8 09 12 AM

Rai-Sahil avatar Feb 28 '24 16:02 Rai-Sahil

In the latest release version, this should be fixed by this PR

HenryHengZJ avatar Feb 29 '24 10:02 HenryHengZJ