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
0.8.2 change, new error #12
Comments
Thanks for this report. In 0.8.2 some changes needed to be made to the order some things run, to ensure compatibility with Sanic 19.6 (particularly ASGI mode), so I'm guessing theres a side-effect of that which is causing this. I will look into it. |
Ok, so I've found the problem. In pre-v0.8.2, the Sanic-Plugins-Framework before-run initialisation routine was configured to run on So in v0.8.2 the initialisation routine was changed to run on Unfortunately it looks like using I will need raise this with the Sanic devs as a potential issue going forward, particularly for plugin creators. As a temporary fix, you can force the run of the
|
Thanks @ashleysommer, I can confirm this works for my application. |
@jmbott I've created a post on the Sanic community forum about this issue. |
@jmbott |
On the latest version,
0.8.2
I am getting caught with the error,App must be running before you can run middleware!
, here, but not on previous releases. Usingspf
as a requirement ofSanic-Cors
.Output:
Python 3.7.4 (but same error with earlier versions)
sanic==19.6.2
Sanic-Cors==0.9.8.post3
Sanic-Plugins-Framework==0.8.2
Test to reproduce error:
The text was updated successfully, but these errors were encountered: