-
Notifications
You must be signed in to change notification settings - Fork 402
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
Comments
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
could it be in my case because the request is being done to http and not https? |
sorry in the miniprofiler looks with http, but on the console the post is with https |
+1 |
temporay solve problem by removing files in |
+1 |
|
Thanks @Wild-R and @guange2015 , |
+1 for @Wild-R and @guange2015 for |
+1 |
With http://lotusrb.org/ getting 404 to POST to /mini-profiler-resources/results |
@sanrodari @murtali Rack::MiniProfiler.config.storage = Rack::MiniProfiler::FileStore
Rack::MiniProfiler.config.storage_options = { path: './tmp' } |
Is there desire to make file system the default for all? |
@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. |
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? |
+1 rm -rf tmp/miniprofiler solved the issue. Thanks. |
@kbrock @sanrodari Hi, Hanami is Rack based, you can |
+1 |
+1 |
1 similar comment
+1 |
Sorry to see so many +1 here. |
For me, it's happening with Rails |
@shaneog thanks. and that is rails 4.0 I assume? |
@kbrock Apologies, it is. Rails 4.2.7 |
Rails 4.2.x Sent from my iPhone
|
Rails 4.2.x Thanks, Rob Little. On Thu, Aug 25, 2016 at 9:07 AM, Prokop Simek notifications@github.com
|
This still seems to be an issue on Rails 4.2 - @railsme's suggestion above works perfectly. |
jFYI: Same with Rails 5.2.2 |
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. |
Same with:
|
Seeing it (HTTP 422) with: Rails 6.1.7
|
I think if we had a simple reproducing app, we could fix this for all storage engines. |
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?
The text was updated successfully, but these errors were encountered: