Error

Radu Adrian's Avatar

Radu Adrian

09 Oct, 2019 07:05 PM

Hello i am getting an error when i am trying to paste this code in Anki back card:
Thank you.

 if (request.getParameter("submit") != null) {
                out.println("Your first name is: " + request.getParameter("firstName") + "<br>");
                out.println("Your last name is: " + request.getParameter("lastName") + "<br>");
                out.println("Your city is: " + request.getParameter("city") + "<br>");
                out.println("Your state is: " + request.getParameter("state") + "<br>");
                out.println("Your message is: " + request.getParameter("message") + "<br>");
            }

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=False sv=1

Caught exception:
  File "aqt\webview.py", line 27, in cmd
  File "aqt\webview.py", line 87, in _onCmd
  File "aqt\webview.py", line 368, in _onBridgeCmd
  File "aqt\editor.py", line 288, in onBridgeCmd
  File "aqt\editor.py", line 750, in onPaste
  File "aqt\editor.py", line 864, in onPaste
  File "aqt\editor.py", line 858, in _onPaste
  File "aqt\editor.py", line 903, in _processMime
  File "aqt\editor.py", line 914, in _processUrls
<class 'IndexError'>: list index out of range

  1. Support Staff 1 Posted by Damien Elmes on 09 Oct, 2019 11:43 PM

    Damien Elmes's Avatar

    Anki is getting confused because the app you've copied text from says it has a URL on the clipboard, but there are no URLs included.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac