Closed
Description
network upload with esp8266 and esp32 core doesn't have upload.port.properties.port
property evaluated from network port discovery
IDE 2
.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3" -I "/home/duro/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/espota.py" -i "192.168.1.113" -p "{upload.port.properties.port}" "--auth=a" -f "/tmp/arduino-sketch-41571935C07681B86282A62DC15FAFF8/Blink.ino.bin"
Usage: espota.py [options]
espota.py: error: option -p: invalid integer value: '{upload.port.properties.port}'
Upload error: Failed uploading: uploading error: exit status 2
IDE 1
.arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3 -I /home/duro/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/espota.py -i 192.168.1.113 -p 8266 --auth= -f /tmp/arduino_build_169908/Blink.ino.bin
Activity
JAndrassy commentedon Jan 6, 2022
the mdns record is
since
auth_upload
is not read too, IDE 2 opens the password dialog. IDE 1 doesn't ask for password.silvanocerza commentedon Jan 10, 2022
@JAndrassy by any chance have you tested with the Arduino CLI too? This could probably be an issue with it.
JAndrassy commentedon Jan 10, 2022
with CLI (bundled with IDE) it works. the port is provided. (but asks for password too)
octoplayer2 commentedon Jan 25, 2022
I have found the same issue under Windows 64; again the CLI workaround works.
I have not yet set a password on the board, and CLI demands one. Entering gives Authentication Fail, but entering a dummy password Authenticates.
BTW, would fixing the Port declaration issue to allow IP format also address #770, to allow empty Port numbers?
octoplayer2 commentedon Feb 22, 2022
Any sign of a fix for this? - I was using the CLI workaround, but when I upgraded to CLI 0.21 the OTA authenticates, but then says it cannot get a response from the device.. So I have reverted to 1.18.16, as I need the OTA.
me-no-dev commentedon Apr 2, 2022
Issue is that Port properties are being lost in the IDE, because in between the code it has been mapped to a different Port structure that does not even have
properties
object (the one that holds network port and so on).Here is an example of what config is given to upload:
CLI in a mean time gives the following boards to the IDE:
The "bad"
Port
class interface is here: https://github.com/arduino/arduino-ide/blob/main/arduino-ide-extension/src/common/protocol/boards-service.ts#L145 It is part ofCoreService.Upload.Options
which is given todoUpload
here: https://github.com/arduino/arduino-ide/blob/main/arduino-ide-extension/src/node/core-service-impl.ts#L130I just could not trace how/where it was turned into that offending
Port
interface and lost all properties.label
should be visible from themdns-discovery
#567Add support for ArduinoIDE 2.0.0 (#6506)
1 remaining item
per1234 commentedon Aug 17, 2022
I can still reproduce the issue with 2.0.0-rc9.2-snapshot-9e2b73a and esp8266 platform version 3.0.2
Use port properties from the discovery.
Use port properties from the discovery.
Use port properties from the discovery.
Use port properties from the discovery.
bartgrefte commentedon Mar 7, 2024
@per1234 Is earlephilhower/arduino-pico#1728 (comment) the same as this? I'm running into this as well, see the comment after that. Arduino IDE 2.3.2
edit: Downgrade to 1.8.13 and problem is gone.
zeroalphagit commentedon Apr 5, 2024
Any fix for this its happening for me on Arduino IDE 2.3.2 and esp8266 when attempting to do OTA upload
espota.py: error: option -p: invalid integer value: '{upload.port.properties.port}'
JAndrassy commentedon Apr 5, 2024
@zeroalphagit with what version of the esp8266 platform?
zeroalphagit commentedon Apr 8, 2024
I am using: Arduino IDE 2.3.2 with ESP8266 3.1.2 Library.
I'm getting the same error (espota.py: error: option -p: invalid integer value: '{upload.port.properties.port}') on an older nodemcu (esp8266) and a newer Wemos D1 mini with ESP8266EX