Skip to content

Real ball-ache trying to determine the error response.... I came up with this (sorry VB) #56

@trevski

Description

@trevski

Dim subResponse As GoCardless.Services.SubscriptionResponse
Try
subResponse = oClientApi.Subscriptions.CreateAsync(subRequest).Result
Catch ex As Exception
Dim inner As Object = ex.InnerException
Dim myTask As Task(Of String) = inner.responseMessage.content.ReadAsStringAsync()
Dim ErrorMsg As String = myTask.Result

                        Return Nothing
                    End Try

This would be very useful to add to the Docs...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions