nango icon indicating copy to clipboard operation
nango copied to clipboard

Cannot register config when list of scope is over 255 characters

Open gailuron1964 opened this issue 3 years ago • 1 comments

Running the following:

pizzly config:create hubspot hubspot '<client-id>' '<client-secret>' 'crm.lists.read,crm.objects.companies.read,crm.objects.contacts.read,crm.objects.deals.read,crm.objects.line_items.read,crm.objects.owners.read,crm.schemas.companies.read,crm.schemas.companies.read,crm.schemas.deals.read,crm.schemas.line_items.read,e-commerce'

Returns a 500 error code: ❌ Error: AxiosError: Request failed with status code 500

The logs indicate it's due to the configuration for the scope field in the db:

nango-db           | 2023-01-19 23:27:13.698 UTC [32] ERROR:  value too long for type character varying(255)

gailuron1964 avatar Jan 19 '23 23:01 gailuron1964

HI @gailuron1964, thanks for catching this. I'll change the data type to accommodate arbitrarily long strings. It will be part of Monday's release!

bastienbeurier avatar Jan 20 '23 00:01 bastienbeurier