Code Monkey home page Code Monkey logo

Comments (38)

techsethi avatar techsethi commented on July 24, 2024 2

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

from rack-mini-profiler.

robertleelittleiii avatar robertleelittleiii commented on July 24, 2024 2

Rails 4.2.x

Thanks,

Rob Little.

On Thu, Aug 25, 2016 at 9:07 AM, Prokop Simek [email protected]
wrote:

Rails 4.2.x

Sent from my iPhone

On 25 Aug 2016, at 19:44, Keenan Brock [email protected] 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
.

from rack-mini-profiler.

AnatoliiD avatar AnatoliiD commented on July 24, 2024 1

@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' }

from rack-mini-profiler.

prokopsimek avatar prokopsimek commented on July 24, 2024 1

+1

from rack-mini-profiler.

constantm avatar constantm commented on July 24, 2024 1

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

from rack-mini-profiler.

sevos avatar sevos commented on July 24, 2024

+1

from rack-mini-profiler.

pbuzek avatar pbuzek commented on July 24, 2024

+1

from rack-mini-profiler.

raphaeleidus avatar raphaeleidus commented on July 24, 2024

+1

from rack-mini-profiler.

tonytonyjan avatar tonytonyjan commented on July 24, 2024

+1

from rack-mini-profiler.

tomoyuki28jp avatar tomoyuki28jp commented on July 24, 2024

+1

from rack-mini-profiler.

elranu avatar elranu commented on July 24, 2024

+1

from rack-mini-profiler.

elranu avatar elranu commented on July 24, 2024

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

from rack-mini-profiler.

elranu avatar elranu commented on July 24, 2024

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

from rack-mini-profiler.

michiomochi avatar michiomochi commented on July 24, 2024

+1

from rack-mini-profiler.

wild5r avatar wild5r commented on July 24, 2024

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

from rack-mini-profiler.

casertap avatar casertap commented on July 24, 2024

+1

from rack-mini-profiler.

guange2015 avatar guange2015 commented on July 24, 2024

rm -fr tmp/miniprofiler

from rack-mini-profiler.

MrHubble avatar MrHubble commented on July 24, 2024

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

from rack-mini-profiler.

EllieRagone avatar EllieRagone commented on July 24, 2024

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

from rack-mini-profiler.

murtali avatar murtali commented on July 24, 2024

+1

from rack-mini-profiler.

sanrodari avatar sanrodari commented on July 24, 2024

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

from rack-mini-profiler.

kbrock avatar kbrock commented on July 24, 2024

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?

from rack-mini-profiler.

AnatoliiD avatar AnatoliiD commented on July 24, 2024

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

from rack-mini-profiler.

kbrock avatar kbrock commented on July 24, 2024

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?

from rack-mini-profiler.

sanrodari avatar sanrodari commented on July 24, 2024

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

from rack-mini-profiler.

jodosha avatar jodosha commented on July 24, 2024

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

from rack-mini-profiler.

Kite0301 avatar Kite0301 commented on July 24, 2024

+1

from rack-mini-profiler.

robertleelittleiii avatar robertleelittleiii commented on July 24, 2024

+1

from rack-mini-profiler.

kbrock avatar kbrock commented on July 24, 2024

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

from rack-mini-profiler.

shaneog avatar shaneog commented on July 24, 2024

For me, it's happening with Rails

from rack-mini-profiler.

kbrock avatar kbrock commented on July 24, 2024

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

from rack-mini-profiler.

shaneog avatar shaneog commented on July 24, 2024

@kbrock Apologies, it is. Rails 4.2.7

from rack-mini-profiler.

prokopsimek avatar prokopsimek commented on July 24, 2024

Rails 4.2.x

Sent from my iPhone

On 25 Aug 2016, at 19:44, Keenan Brock [email protected] 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.

from rack-mini-profiler.

tisba avatar tisba commented on July 24, 2024

jFYI: Same with Rails 5.2.2

from rack-mini-profiler.

ireneybean avatar ireneybean commented on July 24, 2024

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.

from rack-mini-profiler.

kzkn avatar kzkn commented on July 24, 2024

Same with:

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

from rack-mini-profiler.

PositiveControl avatar PositiveControl commented on July 24, 2024

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 🩹

from rack-mini-profiler.

nateberkopec avatar nateberkopec commented on July 24, 2024

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

from rack-mini-profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.