Skip to main content

Notifications

Community site session details

Community site session details

Session Id : OXZbLHhqKhrhkqrifyKCtI
Power Automate - Using Connectors
Unanswered

maxquerystringlength in custom connector

Like (0) ShareShare
ReportReport
Posted on 10 Sep 2018 09:13:38 by 2

Good morning,

 

I'm currently tring to create a custom connector for Hubspot CRM, but i'm getting a C# error

enter image description here

 

because of a too long query string.

 

This is not easy to understand the error, but here are the step.

 

I configure a custom Connector with an Oauth 2.0 connection

 

Scheme : https
Host : app.hubspot.com
Base url : /

Client ID and Client Secret :  from the app created with the hubspot interface.

Authorization url : https://app.hubspot.com/oauth/authorize

Token anf refresh URL : https://app.hubspot.com/oauth/v1/token

Scope : contacts

 

this gave me a redirection URL as expected.

When I try a new connection (with test), i have a popup wich ask me for hubspot connexion, and i can log in correctly, but then i get the error about the query.

This seems not to be an hubspot issue, as the error is in C# from an Azure URL, and as when a provide a wrong Scope or a Scope for which i don't have access Hubspot provide an error from there website.

Does anyone have an idea to solve this error ?

 

Thanks,

Francois

 

  • FlowMax Profile Picture
    4 on 18 Sep 2019 at 13:57:40
    Re: maxquerystringlength in custom connector

    This is on the flow side I think - Flows seem to use the authorization_flow grant type once the user is authenticated and grants consent the resulting token is returned in the URL when the redirect is called.  This causes the query string to be too long.

  • FlowMax Profile Picture
    4 on 18 Sep 2019 at 13:51:54
    Re: maxquerystringlength in custom connector

    The resulting JWT token appears in the URL and exceeds the query limit.  We cant change the grant type so we are sort of hosed.

  • fdyvoire Profile Picture
    2 on 14 Sep 2018 at 15:32:48
    Re: maxquerystringlength in custom connector

    Thanks for your answer,

     

    I know this is a C# problem, but i don't have access to the source code of Microsoft Flow.

     

    I will report this problem as a bug since no one has an idea,


    Regards,
    François

  • tfhegdbn Profile Picture
    149 on 13 Sep 2018 at 09:12:04
    Re: maxquerystringlength in custom connector

    Cat Happy

    I don't know if these links can help you, I am a newbie to the Web api.

     

    https://www.aspforums.net/Threads/899424/Solved-The-length-of-the-query-string-for-this-request-exceeds-the-configured-maxQueryStringLength-value/

     

    https://stackoverflow.com/questions/11636386/how-to-configure-the-web-config-to-allow-requests-of-any-length

     

    I feel that this is not a problem on the Flow side. Maybe you should go to the C# community to make a turn.Smiley Very Happy

     

    Regards,

    Dandy

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard

Featured topics

Loading complete