Skip to content

Throw meaningful error on non-supported providers #251

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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