microsoft / microsoft/PowerPlatformConnectors
[BUG] InternalServerError when using script
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.3k
- Forks
- 1.5k
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 11
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the custom connector script in an Instant Cloud Flow with paconn 0.0.20, comparing cold-start and subsequent requests. No repository files or tests are identified; done means the trivial forwarding script completes consistently without InternalServerError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100