private_pub icon indicating copy to clipboard operation
private_pub copied to clipboard

404 on faye-browser-min.js.map

Open andrei4002 opened this issue 11 years ago • 14 comments

running rails 3.1.12, per-wiki installation.

When loading the page i see that something calls for a http://localhost:9292/faye-browser-min.js.map which doesn't exist (404)

I tried calling http://localhost:9292/faye/faye-browser-min.js.map which does exist, but I'm not sure what's going on here (meaning who calls the wrong url)

andrei4002 avatar Aug 30 '13 11:08 andrei4002

The same thing for Rails 4.

resure avatar Aug 30 '13 18:08 resure

Workaround: set server in private_pub.yml to something like this: http://localhost:9292/faye/faye (yes, double faye at the end).

resure avatar Aug 30 '13 21:08 resure

@resure - I've got the same problem and the workaround works for me, but you got any idea what causes this so we can fix it in the long run?

workmaster2n avatar Sep 13 '13 15:09 workmaster2n

@workmaster2n, I've migrated project to another pc and everything works fine there. So currently I can't reproduce the bug :(

resure avatar Sep 27 '13 12:09 resure

I had the same issue with Rails4 issue indeed, and the one @andrei4002 is describing! It turned out to be an issue with environments!

faye rack runs in production, and my primary app in development (and forgot to change the config for development in private_pub.yml)

dblommesteijn avatar Oct 21 '13 13:10 dblommesteijn

@dblommesteijn can you explain exactly how you fixed this please? As far as I can tell everything is setup ok for me, but I'm still getting this error

chrise86 avatar Dec 09 '13 15:12 chrise86

It is working for me in development and testing server..but not in production.. any permanent solution??

abdul-shajin avatar Dec 10 '13 05:12 abdul-shajin

@resure double faye resolved loading map file issue..but when we try to post request with faye, browser showing status as pending which is not coming when I have removed double faye..

abdul-shajin avatar Dec 10 '13 06:12 abdul-shajin

@chrise86 I'm not sure what your issue is, however my problem was triggered when faye (running in production) was trying to use the production configuration to access information from my rails app (which was running in development). I had no configuration setup for my rails-app in production, therefore faye returned the error, expecting a production setup.

dblommesteijn avatar Dec 13 '13 16:12 dblommesteijn

+1

Where are we with fixing this, should just be a path issue no? add "/faye" to the path route?

ajbraus avatar Dec 16 '13 01:12 ajbraus

This problem can be fixed by loading the correct faye js path.

If, like me, you followed ryanb's tutorial you are loading the JS like this: http://localhost:9292/faye.js

You should use this path instead: http://localhost:9292/faye/faye.js

Then the second script that is loaded through this script will load at its correct path.

joeystdio avatar Jan 05 '14 22:01 joeystdio

+1 The solution by @resure with adding /faye/faye worked for me also. After hours of struggle.

kocasp avatar Sep 29 '15 12:09 kocasp

The quick patch would be putting this faye-browser-min.js.map file on to folder /vendor/assets/javascripts

You can download the zip which contains this file here: http://faye.jcoglan.com/assets/faye.1-1-1.zip

fera2k avatar Dec 09 '15 21:12 fera2k

@fera2k Tx

Hermanverschooten avatar Dec 10 '15 17:12 Hermanverschooten