Skip to content

ftpserver mutated without adapting documentation - breaking change #3191

@HHHartmann

Description

@HHHartmann

Expected behavior

code works as documented

Actual behavior

code fails with errormessage:

node.flashindex('ftpserver')().createServer("test","12345",true)
Lua error: 	...itHub\nodemcu-firmware\lua_modules\ftp\ftpserver.lua:70: attempt to index a string value
stack traceback:
	...itHub\nodemcu-firmware\lua_modules\ftp\ftpserver.lua:70: in function 'createServer'
	stdin:1: in main chunk
	[C]: ?
	[C]: ?

Test code

Working code:

node.flashindex('ftpserver')():createServer("test","12345",true)

Note the ':' instead of '.' before createServer

Documentation says:

httpserver.createServer()

NodeMCU startup banner

This is on current dev and master branch

NodeMCU 3.0.0.0
branch: pr_3158
commit: fd8ef76
release: 3.0-master_20200610 +11
release DTS:
SSL: false
build type: float
LFS: 0x40000 bytes total capacity
modules: adc,bit,color_utils,crypto,dht,encoder,enduser_setup,file,gpio,http,i2c,l3g4200d,mdns,net,node,ow,pipe,pixbuf,pwm,rtcfifo,rtcmem,rtctime,sjson,sntp,spi,struct,tmr,uart,wifi,wifi_monitor,ws2812,ws2812_effects
build 2020-06-26 19:39 powered by Lua 5.1.4 on SDK 3.0.1-dev(fce080e)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions