-
Notifications
You must be signed in to change notification settings - Fork 144
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
Can't hit the endpoint #203
Comments
Updated comment above because of
|
|
Switched to an endpoint that doesn't need auth just to try to get it working.
Contents of
|
Figured out the issue. Need to set HTTP_HOST to localhost. https://stackoverflow.com/questions/65433303/sending-a-rack-request-through-rails-console Might be helpful to update the README for next chap. |
I think the problem here is that PATH_TO_HIT is only supposed to be a path, not a full host. Does it work if you use We could detect the case of that starting with |
It tries to go to example.org if you remove
Also the README says you can use a full uri. |
You are right there about passing in fully qualified hosts. Thankfully past me documented it :) It looks like some logic somewhere in your app is blocking connections. where is this output coming from “Blocked host”? Can you reproduce this with a “rails new” app? |
I just had this as well. <!-- BEGIN <REDACTED>/gems/ruby-3.2.2/gems/actionpack-7.0.8/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb -->
<header>
<h1>Blocked hosts: </h1>
</header>
<main role="main" id="container">
<h2>To allow requests to these hosts, make sure they are valid hostnames (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:</h2>
<pre>
config.hosts << ""
</pre>
<p>For more details view: <a href="https://guides.rubyonrails.org/configuring.html#actiondispatch-hostauthorization">the Host Authorization guide</a></p> When I added The command that worked was: HTTP_HOST=localhost RAILS_ENV=development PATH_TO_HIT=/sync/3/start USE_AUTH=true bundle exec derailed exec perf:mem |
Been stumped since yesterday afternoon and paired with another engineer today but still stuck. Any pointers would be appreciated.
Mac OSX 11.6 on Intel
Contents of
/etc/hosts
:Contents of
/private/etc/hosts
:Contents of
perf.rake
:relevant rake route snippet:
The text was updated successfully, but these errors were encountered: