Skip to content

Crash on request time out #32

Closed
Closed
@r748

Description

Hi and thanks for this adapter!

I've had the following issue multiple times now: The adapter crashes with

error: swiss-weather-api.0 (14348) uncaught exception: getaddrinfo ENOTFOUND api.srgssr.ch
error: swiss-weather-api.0 (14348) Error: getaddrinfo ENOTFOUND api.srgssr.ch at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
error: swiss-weather-api.0 (14348) Exception-Code: ENOTFOUND: getaddrinfo ENOTFOUND api.srgssr.ch
debug: swiss-weather-api.0 (14348) cleaned everything up...
info: swiss-weather-api.0 (14348) terminating
error: host.XXXXX.local instance system.adapter.swiss-weather-api.0 terminated with code 6 (UNCAUGHT_EXCEPTION)

Then restart ist initiated

info: host.HOMESERVER.local Restart adapter system.adapter.swiss-weather-api.0 because enabled

but then cancelled immediately afterwards

warn: host.XXXXX.local Do not restart adapter system.adapter.swiss-weather-api.0 because restart loop detected

Could you please fix the adapter to handle the encountered exception?

Thanks,
Rob

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions