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>");

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\", line 27, in cmd
  File "aqt\", line 87, in _onCmd
  File "aqt\", line 368, in _onBridgeCmd
  File "aqt\", line 288, in onBridgeCmd
  File "aqt\", line 750, in onPaste
  File "aqt\", line 864, in onPaste
  File "aqt\", line 858, in _onPaste
  File "aqt\", line 903, in _processMime
  File "aqt\", 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.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? 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