Closed Tooseriuz closed 5 months ago
Zhenya is suspecting that when the arbimon consumer was down. it makes Core API POST /streams can create successfully
arbimon consumer
POST /streams
if (arbimonService.isEnabled && options.requestSource !== 'arbimon') { try { const arbimonSite = { ...fullStream, country_code: fullStream.countryCode } const externalSite = await arbimonService.createSite(arbimonSite, options.idToken) fullStream.externalId = externalSite.site_id } catch (error) { console.error(`Error creating site in Arbimon (stream: ${fullStream.id})`) throw new Error() } }
should we check site_id and throw an Error if undefined ?
site_id
if (!externalSite.site_id) { throw new Error('site_id is missing in stream creation response') }
Zhenya is suspecting that when the
arbimon consumer
was down. it makes Core APIPOST /streams
can create successfullyshould we check
site_id
and throw an Error if undefined ?