GraphQL appSubscriptionCreate mutation - 255 characters validation on returnUrl parameter

Highlighted
New Member
2 0 0

Hi, 

 

I am using GraphQL to create app subscriptions, with the mutation appSubscriptionCreate:


image.png

 

Sometimes, when the "returnUrl" parameter is longer than 255 characters, I am receiving this error:

Validation failed: Return url is too long (maximum is 255 characters)
 
However, our urls are often longer than 255 characters. There are some merchants with long store names and moreover we need to pass some more request parameters in the url.
 
¿Is there other way to manage this? ¿Could be possible to increment this limit?
 
Thanks and regards
0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 124

Hi @fransierra ,

 

There is no way to increment the character limit for this input field, the size limitation is set on our DB side.

 

Have you tried using a URL Shortener tool (i.e. bit.ly) to reduce the size of your URLs?

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes