-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
espota.py: error: option -p: invalid integer value: '{upload.port.properties.port}' #740
Comments
the mdns record is
since |
@JAndrassy by any chance have you tested with the Arduino CLI too? This could probably be an issue with it. |
with CLI (bundled with IDE) it works. the port is provided. (but asks for password too)
|
I have found the same issue under Windows 64; again the CLI workaround works. |
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. |
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 {
"wrappers_": {
"1": {
"wrappers_": null,
"arrayIndexOffset_": -1,
"array": [
1
],
"pivot_": 1.7976931348623157e+308,
"convertedPrimitiveFields_": {
}
},
"4": {
"wrappers_": {
"5": {
"arr_": [
],
"valueCtor_": null,
"map_": {
},
"arrClean": true
}
},
"arrayIndexOffset_": -1,
"array": [
"192.168.254.153",
"esp32-7cdfa1e00e58 at 192.168.254.153",
"network",
"Network Port",
[
]
],
"pivot_": 1.7976931348623157e+308,
"convertedPrimitiveFields_": {
}
}
},
"arrayIndexOffset_": -1,
"array": [
[
1
],
"espressif:esp32:esp32s3:PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=default,CPUFreq=240,UploadSpeed=921600,DebugLevel=debug",
"/Users/ficeto/Documents/Arduino2/BasicOTA",
[
"192.168.254.153",
"esp32-7cdfa1e00e58 at 192.168.254.153",
"network",
"Network Port",
[
]
],
true,
true
],
"pivot_": 1.7976931348623157e+308,
"convertedPrimitiveFields_": {
}
} CLI in a mean time gives the following boards to the IDE: [
{
"port": {
"address": "192.168.254.153",
"label": "esp32-7cdfa1e00e58 at 192.168.254.153",
"protocol": "network",
"protocol_label": "Network Port",
"properties": {
".": "esp32s3",
"auth_upload": "no",
"board": "esp32s3",
"hostname": "esp32-7cdfa1e00e58.local.",
"port": "3232",
"ssh_upload": "no",
"tcp_check": "no"
}
}
},
{
"port": {
"address": "/dev/cu.Bluetooth-Incoming-Port",
"label": "/dev/cu.Bluetooth-Incoming-Port",
"protocol": "serial",
"protocol_label": "Serial Port"
}
},
{
"port": {
"address": "/dev/cu.usbserial-1124110",
"label": "/dev/cu.usbserial-1124110",
"protocol": "serial",
"protocol_label": "Serial Port (USB)",
"properties": {
"pid": "0xEA60",
"serialNumber": "44b562375972ea118b553a1dcf25bb41",
"vid": "0x10C4"
}
}
},
{
"port": {
"address": "/dev/cu.SLAB_USBtoUART",
"label": "/dev/cu.SLAB_USBtoUART",
"protocol": "serial",
"protocol_label": "Serial Port (USB)",
"properties": {
"pid": "0xEA60",
"serialNumber": "44b562375972ea118b553a1dcf25bb41",
"vid": "0x10C4"
}
}
}
] The "bad" I just could not trace how/where it was turned into that offending |
OTA is not yet working properly on the new IDE. Info: arduino/arduino-ide#740 (comment)
I can still reproduce the issue with 2.0.0-rc9.2-snapshot-9e2b73a and esp8266 platform version 3.0.2 |
Signed-off-by: Akos Kitta <[email protected]> Closes #740 Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]> Closes #740 Signed-off-by: Akos Kitta <[email protected]>
Signed-off-by: Akos Kitta <[email protected]> Closes #740
Signed-off-by: Akos Kitta <[email protected]> Closes #740
@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. |
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}' |
@zeroalphagit with what version of the esp8266 platform? |
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 |
network upload with esp8266 and esp32 core doesn't have
upload.port.properties.port
property evaluated from network port discoveryIDE 2
IDE 1
The text was updated successfully, but these errors were encountered: