nango
nango copied to clipboard
Cannot register config when list of scope is over 255 characters
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)
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!