rails_panel icon indicating copy to clipboard operation
rails_panel copied to clipboard

Panel not working on chrome extension 1.0.1 with the latest meta_request gem 0.8.5

Open jagdishadusumalli opened this issue 1 year ago • 8 comments

I just installed the chrome extension 1.0.1 with the latest meta_request gem 0.8.5. On Chrome Browser 130 On macOS 15.1 Sequioa VScode 1.95.2 Rails s running on 3000

Started the server with Panel open and crashed a page with error The panel does not show any information.

jagdishadusumalli avatar Nov 14 '24 11:11 jagdishadusumalli

I'm also running into this issue. Using rails v7.0.8.5.

For some reason, [email protected] isn't adding the X-Meta-Request-Version that RailsPanel uses to know that it should do its thing.

Here's a sample request with v0.8.4:

curl -I http://localhost:3000

HTTP/1.1 302 Found
Location: http://localhost:3000/users/sign_in
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Set-Cookie: [...]
X-Meta-Request-Version: 0.8.4
X-Request-Id: 03da8c28-814f-48d8-ab64-e693cd98b2bd
X-Runtime: 0.462956
Content-Length: 0

And with v0.8.5:

curl -I http://localhost:3000

HTTP/1.1 302 Found
Location: http://localhost:3000/users/sign_in
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache
Set-Cookie: [...]
X-Request-Id: 8574c1ba-4699-4c65-919d-ccb368c6dae2
X-Runtime: 0.468565
Content-Length: 0

The weird part is that the tests in the gem seem to specifically check this and they're all passing. There's probably some conflict between gems/middlewares, but I don't have time to investigate further right now.

I'll be sticking to v0.8.4 until a fix comes out or we can figure out what the conflict is and solve it.

rafasoares avatar Nov 22 '24 09:11 rafasoares

Getting the same issue. Works with [email protected].

raulpopadineti avatar Nov 23 '24 08:11 raulpopadineti

I can confirm as well. Downgrading meta_request to 0.8.4 works.

AdrienGiboire avatar Dec 19 '24 13:12 AdrienGiboire

Also confirmed that downgrading meta_request to 0.8.4 shows the required headers.

tridnguyen avatar Dec 26 '24 17:12 tridnguyen

it looks like the 0.8.5 gem is cooked. The only thing in there is the README file

abrom avatar Jan 22 '25 07:01 abrom

See https://my.diffend.io/gems/meta_request/0.8.4/0.8.5

abrom avatar Jan 22 '25 07:01 abrom

Doing something like this in your Gemfile will let you do the thing here:

gem 'meta_request', github: 'dejan/rails_panel', ref: 'meta_request-v0.8.5'

But yeah. the v0.8.5 gem file is broken, 'cause all that's in it is the README file with no code or anything else.

dark-panda avatar Jan 29 '25 14:01 dark-panda

I don't know why the README isn't updated

rip747 avatar May 05 '25 01:05 rip747