Hello,
We are using SEN4CAP version 3.2.
When trying to connect to the MDB, we get an authentication error (error=401).
For the authentication, we are using the script below ( R ) .
We did already used the script with SEN4CAP v3.1.
Has it been any change between both versions?
Where the problem could came from?
usr = list( user = ‘sen4cap’, pwd = ‘********’)
login = paste0(“http://”,ip_address,“:”,port,‘/login’)
authentication ← POST(login, content_type(“application/x-www-form-urlencoded”), query=usr)
authentication
authentication ← fromJSON(content(authentication, “text”))
token ← authentication[[‘data’]][[‘sessionToken’]]
call ← paste0(‘http://’,ip_address,‘:’,port,‘/’,‘markers/names?site=’,site_short_name,‘&productType=’,markers_type,‘&year=’,year)
response ← GET(call,add_headers(“X-Auth-Token” = token))
response
Thank you in advance for your support.
Marta