Skip to content

[BUG] InternalServerError when using script #1925

@ben741

Description

@ben741

Type of Connector

Custom Connector

Name of Connector

Any (in development)

Describe the bug

When developing a connector and using custom scripting, operations frequently fail with an InternalServerError message and no further details.

This even happens for a trivial script that just forwards the request:

public class Script : ScriptBase
{
    public override async Task<HttpResponseMessage> ExecuteAsync()
    {
        HttpResponseMessage response = await this.Context.SendAsync(this.Context.Request, this.CancellationToken).ConfigureAwait(continueOnCapturedContext: false);
        return response;
    }
}

It tends to happen more often for "cold starts" - a second request tends to succeed.

Is this a security bug?

No, this is not a security bug

What is the severity of this bug?

Severity 2 - One or more important connector features are down

To Reproduce

Create a custom connector and enable a custom script (such as the one in the description above). Test/run it as part of an "Instant Cloud Flow."

Expected behavior

The connector should work each time, with no InternalServerErrror.

Environment summary

paconn --version
0.0.20

Additional context

The specifics of the API definition and script content don't seem to matter.

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