Skip to content

Throw meaningful error on non-supported providers #251

@Maximvdw

Description

@Maximvdw

Currently when 'trying' to get the notification gateway from a pod provider; it will extract the gateway
from .well-known/solid. Not supported providers will not have the notificationGateway option.
This causes a fetch on an undefined URL causing an non-descriptive error:

const response = await this.fetch(this.gateway, {

Would it be an option to throw a more meaningful error before the above line that identifies the provider as unsupported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions