-
Notifications
You must be signed in to change notification settings - Fork 34
Error: Uncaught (in promise): Error: Invalid response: 403 Forbidden #101
Comments
What version of the pypi package
Let me know if that fixes it. Also, on GitHub to make the scriptedforms content display properly surround them with the following tags: ~~~python
Write test.py contents in here
~~~ |
@ysharoiko How did you go with this issue? |
Hello Simon, Facing the same issue with your quick-start example on OSX High Sierra 10.13.3 with Python 3.6.4. This is the error message on the browser:
And the following is the error message on the Terminal:
I tried your suggestions above but it still did not work. I also tried setting the the following option in the jupyter notebook global config: But it had no effect. Hope this helps. |
Can you run pip freeze and then tell me what version of the package notebook is installed? Also if you do the following: https://github.com/SimonBiggs/scriptedforms#optional-installing-the-jupyter-server-extension Does that make a difference? |
notebook==5.4.0 Installing with jupyter extension results in the following:
|
What version of scriptedforms are you running? |
scriptedforms==0.6.5 |
What if you try the following: jupyter serverextension enable --py scriptedforms Then try: jupyter notebook --NotebookApp.default_url=/scriptedforms/quick-start.md |
Bingo! It works for me now. I also had to have the following in the jupyter global config: Thank you for the help. I've added the terminal output below for reference. `
[I 11:06:13.913 NotebookApp] Accepting one-time-token-authenticated connection from ::1 |
Thanks for the feedback. It still should work with just plain If you remove the |
After removing the setting. I ran the two following commands. (scripted_forms) DEVML0204889:scripted_forms dre09$ jupyter notebook
[I 23:49:08.070 NotebookApp] Accepting one-time-token-authenticated connection from ::1 (scripted_forms) DEVML0204889:scripted_forms dre09$ jupyter notebook --NotebookApp.default_url=/scriptedforms/quick-start.md
[I 23:50:18.966 NotebookApp] Accepting one-time-token-authenticated connection from ::1 Everything is still working. |
Okay, well that's very good to hear. So what happens if you run
`scriptedforms quick-start.md`?
…On Thu., 8 Mar. 2018, 10:54 am Devan, ***@***.***> wrote:
After removing the setting. I ran the two following commands.
(scripted_forms) DEVML0204889:scripted_forms dre09$ jupyter notebook
[I 23:49:07.719 NotebookApp] Serving notebooks from local directory:
/Users/dre09/Workspace/github/scripted_forms
[I 23:49:07.720 NotebookApp] 0 active kernels
[I 23:49:07.720 NotebookApp] The Jupyter Notebook is running at:
[I 23:49:07.720 NotebookApp]
http://localhost:8888/?token=20605126b903b18406b80cb676199f964358a02b93a3b423
[I 23:49:07.720 NotebookApp] Use Control-C to stop this server and shut
down all kernels (twice to skip confirmation).
[C 23:49:07.723 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=20605126b903b18406b80cb676199f964358a02b93a3b423
[I 23:49:08.070 NotebookApp] Accepting one-time-token-authenticated
connection from ::1
(scripted_forms) DEVML0204889:scripted_forms dre09$ jupyter notebook
--NotebookApp.default_url=/scriptedforms/quick-start.md
[I 23:50:18.731 NotebookApp] Serving notebooks from local directory:
/Users/dre09/Workspace/github/scripted_forms
[I 23:50:18.731 NotebookApp] 0 active kernels
[I 23:50:18.731 NotebookApp] The Jupyter Notebook is running at:
[I 23:50:18.731 NotebookApp]
http://localhost:8888/?token=7236c210167d3aa9dde807183e9d67fb6a2865303c5c4fc0
[I 23:50:18.731 NotebookApp] Use Control-C to stop this server and shut
down all kernels (twice to skip confirmation).
[C 23:50:18.732 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=7236c210167d3aa9dde807183e9d67fb6a2865303c5c4fc0
[I 23:50:18.966 NotebookApp] Accepting one-time-token-authenticated
connection from ::1
[I 23:50:20.732 NotebookApp] Kernel started:
6017d44f-6235-466b-9417-c18f22c4697e
[I 23:50:20.792 NotebookApp] Kernel started:
92a292d5-9c3d-424d-96b0-0edae7b87954
[I 23:50:21.920 NotebookApp] Adapting to protocol v5.1 for kernel
6017d44f-6235-466b-9417-c18f22c4697e
[I 23:50:22.057 NotebookApp] Adapting to protocol v5.1 for kernel
92a292d5-9c3d-424d-96b0-0edae7b87954
Everything is still working.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#101 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGQVe0OVpJmT3KOX12PyvgtpnRq6TgUeks5tcHMwgaJpZM4SVZ7B>
.
|
That works now as well: (scripted_forms) DEVML0204889:scripted_forms dre09$ scriptedforms quick-start.md
[I 09:39:20.272 ScriptedForms] Accepting one-time-token-authenticated connection from ::1 |
Alright :) sounds good to me. |
I have a similar error. Version is scriptedforms==0.6.6 I tried your suggestion from this comment. No difference.
|
Could it be something like opening and closing the terminal after running updates? Could you also try #101 (comment) |
Ahh sorry, I just saw you said you tried that. Can you also verify your version of the notebook package for me? And if you could also report what browser you're using, and OS. |
And if you could also run |
notebook==5.4.0
|
What is the terminal output for each of the other two options? |
@raiderrobert @ysharoiko were you still having an issue with scriptedforms? |
Please comment if you are still having trouble. I would be interested if you also have trouble with the portable version: https://github.com/SimonBiggs/scriptedforms/releases/download/0.7.1/scriptedforms-0.7.1.zip I'll close this for now. Will reopen if people still say they are having trouble. |
Anybody knows what is it? I cannot get it running. Linux MInt 18.1 64 bit, python3.5
I've installed
scriptedforms
but when i run test.py
I got Error in browser
Error
While rendering your form an error occured.
The error from the Angular compiler is printed below:
Error: Uncaught (in promise): Error: Invalid response: 403 Forbidden
Error: Invalid response: 403 Forbidden
at new ResponseError (http://localhost:8888/scriptedforms/jupyterlab.js:12:2165)
at http://localhost:8888/scriptedforms/jupyterlab.js:42:434820
at ZoneDelegate.invoke (http://localhost:8888/scriptedforms/polyfills.js:36:7588)
at Object.onInvoke (http://localhost:8888/scriptedforms/angular.js:36:1048)
at ZoneDelegate.invoke (http://localhost:8888/scriptedforms/polyfills.js:36:7528)
at Zone.run (http://localhost:8888/scriptedforms/polyfills.js:36:2675)
at http://localhost:8888/scriptedforms/polyfills.js:43:2054
at ZoneDelegate.invokeTask (http://localhost:8888/scriptedforms/polyfills.js:36:8321)
at Object.onInvokeTask (http://localhost:8888/scriptedforms/angular.js:36:950)
at ZoneDelegate.invokeTask (http://localhost:8888/scriptedforms/polyfills.js:36:8242)
cat test.py
The text was updated successfully, but these errors were encountered: