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

POST to /mini-profiler-resources/results returns 404 #71

Open
YoranBrondsema opened this issue Apr 9, 2014 · 38 comments
Open

POST to /mini-profiler-resources/results returns 404 #71

YoranBrondsema opened this issue Apr 9, 2014 · 38 comments
Labels

Comments

@YoranBrondsema
Copy link

Hi,

I am running rack-mini-profiler on Rails 4.0.3 and I'm having issues. All but one POST to /mini-profiler-resources/results returns a 404. I included a screenshot below. Would anyone have an idea what might be causing this?

mini-profiler

@sevos
Copy link

sevos commented Jun 10, 2014

+1

5 similar comments
@pbuzek
Copy link

pbuzek commented Jun 13, 2014

+1

@raphaeleidus
Copy link

+1

@tonytonyjan
Copy link

+1

@tomoyuki28jp
Copy link

+1

@elranu
Copy link

elranu commented Aug 29, 2014

+1

@elranu
Copy link

elranu commented Aug 29, 2014

could it be in my case because the request is being done to http and not https?

@elranu
Copy link

elranu commented Aug 29, 2014

sorry in the miniprofiler looks with http, but on the console the post is with https

@michiomochi
Copy link

+1

@wild5r
Copy link

wild5r commented Oct 3, 2014

temporay solve problem by removing files in tmp/miniprofiler/mp_timers_* in project dir and restart server.
hope this help find permanent solution

@casertap
Copy link

casertap commented Dec 9, 2014

+1

@guange2015
Copy link

rm -fr tmp/miniprofiler

@MrHubble
Copy link

Thanks @Wild-R and @guange2015 , rm -fr tmp/miniprofiler has worked for me as a temporary solution.

@EleanorRagone
Copy link

+1 for @Wild-R and @guange2015 for rm -rf tmp/miniprofiler

@murtali
Copy link

murtali commented Aug 18, 2015

+1

@sanrodari
Copy link

With http://lotusrb.org/ getting 404 to POST to /mini-profiler-resources/results

@AnatoliiD
Copy link

@sanrodari @murtali
MemoryStorage seems to be broken. FileStorage works, which is default storage for rails.

Rack::MiniProfiler.config.storage = Rack::MiniProfiler::FileStore
Rack::MiniProfiler.config.storage_options = { path: './tmp' }

@kbrock
Copy link
Contributor

kbrock commented Jan 25, 2016

Is there desire to make file system the default for all?
Do we need to do something more extravagant than path: './tmp' like ENV['TMP_DIR'] or something?

@AnatoliiD
Copy link

@kbrock path depends on framework you are working with. Just do like you want.

File.join(Dir.pwd, 'tmp')
# or
File.join(__dir__, 'tmp')
# or
File.expand_path(File.dirname(__FILE__), 'tmp') # if you are setting it in config.ru

Don't forget to create target directory.
About default engine, I think everybody free to choose one 😄

@kbrock
Copy link
Contributor

kbrock commented Feb 20, 2016

creating the target directory should be all set with #208

@railsme Setting the default store to FileStore is easy enough. But I still don't know what the gem should set as the default path. every framework wants something different. I agree that the user can pick something easily. But if the default store is file, then either a good default path needs to be chosen, or it will be broken out of the box. (maybe not much of a change)

@sanrodari Is there something like railties for Hanami (Framework Formerly Known as Lotus) where a suitable Hanami defaults can be set?

@sanrodari
Copy link

@kbrock I don't know something like a railtie in Hanami, maybe @jodosha can help us?

@techsethi
Copy link

+1 rm -rf tmp/miniprofiler solved the issue. Thanks.

@jodosha
Copy link

jodosha commented Mar 24, 2016

@kbrock @sanrodari Hi, Hanami is Rack based, you can use it in config.ru.

@Kite0301
Copy link

+1

@robertleelittleiii
Copy link

+1

1 similar comment
@prokopsimek
Copy link

+1

@kbrock
Copy link
Contributor

kbrock commented Aug 25, 2016

Sorry to see so many +1 here.
Are the issues still with rails. or are they for Rack / Sinatra / Other framework apps?

@shaneog
Copy link

shaneog commented Aug 25, 2016

For me, it's happening with Rails

@kbrock
Copy link
Contributor

kbrock commented Aug 25, 2016

@shaneog thanks. and that is rails 4.0 I assume?

@shaneog
Copy link

shaneog commented Aug 25, 2016

@kbrock Apologies, it is. Rails 4.2.7

@prokopsimek
Copy link

Rails 4.2.x

Sent from my iPhone

On 25 Aug 2016, at 19:44, Keenan Brock notifications@github.com wrote:

Sorry to see so many +1 here.
Are the issues still with rails. or are they for Rack / Sinatra / Other framework apps?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@robertleelittleiii
Copy link

Rails 4.2.x

Thanks,

Rob Little.

On Thu, Aug 25, 2016 at 9:07 AM, Prokop Simek notifications@github.com
wrote:

Rails 4.2.x

Sent from my iPhone

On 25 Aug 2016, at 19:44, Keenan Brock notifications@github.com wrote:

Sorry to see so many +1 here.
Are the issues still with rails. or are they for Rack / Sinatra / Other
framework apps?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#71 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABjJo1SDMaPibQIjdOn3KvTEMiJ-ldoGks5qjefXgaJpZM4BxCLX
.

@constantm
Copy link

This still seems to be an issue on Rails 4.2 - @railsme's suggestion above works perfectly.

@tisba
Copy link

tisba commented Jan 7, 2019

jFYI: Same with Rails 5.2.2

@ireneybean
Copy link

I'm running into this with a Sinatra app and version 2.3.1 - I know this issue is pretty old, but since it's still open I figured it might be worth a comment.

@kzkn
Copy link

kzkn commented Oct 4, 2021

Same with:

  • Rails 6.1.4.1
  • puma 5.5.0
  • rack-mini-profiler 2.3.3
  • Rack::MiniProfiler::MemoryStore

@PositiveControl
Copy link

Seeing it (HTTP 422) with:

Rails 6.1.7
Puma 5.6.4
rack-mini-profiler 3.0.0

rm -rf tmp/miniprofiler fixes the issue for now 🩹

@nateberkopec
Copy link
Collaborator

I think if we had a simple reproducing app, we could fix this for all storage engines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests