Import Template - Something went wrong

Hi all,trying to import Eco Watch template:
https://app.arduino.cc/templates/eco-watch
I get a generic error:
"Something went wrong!"
After step 2 (Compiling sketch), during step 3 (Uploading sketch)

The network wifi configuration is correct. Is there any way to get some talking log? What can I do to verify what is wrong?

See the pinned post re 'How to get the best from the forum'

First thing is to identify what 'Eco Watch template' is. Maybe a link?

Hi sonofcy Faraday, I updated the message: the Eco Watch template refers to:
https://app.arduino.cc/templates/eco-watch
One of the examples made available by Arduino for Plug And Make Kit

Ok, but unfortunately, it is much harder to help with cloud projects. If you take a screen grab at each step, that will help, but since I don't have the hardware, I can't help.

Hi @azeppieri. I'm going to ask you to provide some additional information that might help us to identify the problem.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Start Arduino Cloud Agent if it is not already running.
  2. Click on the Arduino Cloud Agent icon (looks like an Arduino logo).
    If you are using Windows, the icon will be in the "notification area". If you are using macOS, it will be in the "menu bar".
    A menu will open.
  3. Select "Open Debug Console" from the menu.
    The "Arduino Cloud Agent Debug Console" page will open in your browser.
  4. Click the third button from the right in the toolbar at the bottom of the "Arduino Cloud Agent Debug Console" page.
    A menu will open.
  5. Select "HIDE 'LIST' COMMANDS" from the menu.
  6. Click the "CLEAR LOG" button that is located near the bottom right corner of the "Arduino Cloud Agent Debug Console" window.
  7. Leaving the "Arduino Cloud Agent Debug Console" browser tab open, attempt to import the template once more, just the same as you did before when you encountered the error.
  8. Once the process fails, switch to the "Arduino Cloud Agent Debug Console" browser tab.
  9. Click the "EXPORT LOG" button in the bottom right corner of the "Arduino Cloud Agent Debug Console" window.
    A download of a file named agent-log.txt will start.
  10. Open the downloaded "agent-log.txt" file in any text editor.
  11. Press the Ctrl+A keyboard shortcut (Command+A for macOS users) to select all the text.
  12. Press the Ctrl+C keyboard shortcut (Command+C for macOS users).
    This will copy the selected text to the clipboard.
  13. Open a reply here on this forum topic by clicking the "Reply" button.
  14. Click the <CODE/> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
  15. Press the Ctrl+V keyboard shortcut (Command+V for macOS users). This will paste the output into the code block.
  16. Move the cursor outside of the code block markup before you add any additional text to your reply.
  17. Click the "Reply" button to publish the post.

Please let us know if you have any questions or problems while following those instructions.

The screenshots are the following by they are not useful in my opinion:

Hi ptillisch, I followed your instructions by I get no logs:


The exported log file is empty

I'm running into the same issue the upload fails right after compiling with the same "Something went wrong!" message. Would be really helpful if there was a way to view detailed logs or enable debug mode to see what's causing it.

Hi @ptillisch I fixed the problem (more than one agent was in execution); gimme some time and I will provide you the logs as you requested

1 Like

Hi @ptillisch here the logs:

{
  "Cmd": "Serial",
  "ProgrammerStatus": "Starting"
}

{
  "Msg": "Restarting in bootloader mode",
  "ProgrammerStatus": "Busy"
}

{
  "Msg": "1200-bps touch: opening port at 1200bps: Invalid serial port",
  "ProgrammerStatus": "Busy"
}

{
  "Msg": "Reset before upload: 1200-bps touch: opening port at 1200bps: Invalid serial port",
  "ProgrammerStatus": "Error"
}

Hi @ptillisch following the serial port configured for my arduino uno:

When a sketch that uses USB HID capabilities (e.g., the "Keyboard" or "Mouse" libraries) is running on the UNO R4 WiFi board, the template upload fails with this error.

It is necessary to use a special upload procedure under these conditions. I'll provide instructions you can follow to do that:

  1. Unplug the USB cable of the UNO R4 WiFi board from your computer.
  2. Connect the UNO R4 WiFi board to your computer with the USB cable.
  3. Press and release the button marked "RESET" on your UNO R4 WiFi board quickly twice.
    You should now see the on-board LED that is marked "L" start pulsing.
  4. Attempt to import the template again, just as you did before when you encountered the problem.

Hopefully this time everything will work as expected.


Please let us know if you have any questions or problems while following those instructions.

Hi @ptillisch It Worked!!!

Thank you so much.

You are welcome. I'm glad it is working now.

Regards, Per