Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Call to PageExists(string pageShortName) fails #1

@JeffCalmRay

Description

@JeffCalmRay

Hi,

I've found the call to this method fails every time:

var client = new JustGivingApiClient("my-client-Id");
client.UseSandbox()
var exists = await client.Fundraising.PageExists("my-page-short-name");

The error returned is as follows:

{"Message":"An error has occurred.","ExceptionMessage":"Cannot access a disposed object.\r\nObject name: 'System.Net.Http.StreamContent'.","ExceptionType":"System.ObjectDisposedException","StackTrace":" at System.Net.Http.HttpContent.CheckDisposed()\r\n at System.Net.Http.HttpContent.ReadAsStringAsync()\r\n at JustGivingSDK.Clients.ClientBase.c__async0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at JustGivingSDK.Clients.Fundraising.FundraisingClient.c__asyncF.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\r\n (etc)

Am I using this call incorrectly?

Kind regards,

Jeff

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