-
Notifications
You must be signed in to change notification settings - Fork 145
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
Unable to load rivescript-js resource from online source #294
Comments
Can you copy and paste the part of your HTML where your script tag is placed? I can load the CDN link just fine as text in the browser, so maybe there's a typo somewhere. Are you getting a 404 for the script or are you getting a 404 for the page itself? i.e., are you able to load the page, but seeing a 404 for rivescript.min.js in the network tab of dev tools? Or are you unable to load the page in its entirety? |
right this URL works fine at least paste the client side error logs here... |
Can confirm the unpkg.com CDN link works. The exact URL is used on the RiveScript Playground and the Try Online pages and those work for me now. Some other blind ideas to try:
|
hi -
Thank you for your suggestions - I solved the problem at dawn, it turned out when I was fooling around with the code, before putting it on my local host, I created typos and used a Word Processor all of which contributed to extraneous characters in the output.
When I chose "inspect" in the browser I saw the situation and corrected it.
Now it's working perfectly, and I am super excited about the possibilities of rivescript!
Again thanks for our help.
Amy
|
hi -
You were onto something. Thank you for your suggestions - I solved the problem at dawn, it turned out when I was fooling around with the code, before putting it on my localhost, I created typos and used a Word Processor all of which contributed to extraneous characters in the output, i.e. escape codes
When I chose "inspect" in the browser I saw the situation and corrected it.
Now it's working perfectly, and I am super excited about the possibilities of rivescript!
Again thanks for our help.
Amy
|
there are lots of free plain text/code editors like VSCode or Notepad++ (on windows). best not to use a word processor for code 👩💻 |
Yes, I will probably start using one since the error I made is a common one which I would have probably caught much quicker in the past when I was a full-time programmer. Thanks again! Now I can enjoy the benefits of Rivescript which really fascinates me.
|
I'm trying out rivescript-js on my localhost. I have an html page that calls the online rivescript with
<script src=”https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script>But I am getting a 404 error that the resource failed to load.
I have also tried to call my local rivescript.js but that didn't work either. Nothing has successfully loaded and I am not sure what is wrong. Any help would be appreciated.
I am running Tomcat 9.0 server on Windows 10. My Tomcat is running and does jsp files fine.
The text was updated successfully, but these errors were encountered: