but I kept getting an error similar to the one tha...
# prisma-whats-new
w
but I kept getting an error similar to the one that I pasted above
n
@wallslide can you please post the mutation + variables?
w
I'm posting the data from a server
Copy code
{ query: 'mutation ($userId: ID!, $transfersEnabled: Boolean!, $stripeAccountId: String!, $secretKey: String!, $publishableKey: String, $fieldsNeeded: [String!], $dueBy: DateTime, $disabledReason: String, $chargesEnabled: Boolean!, $state: MANAGED_STRIPE_ACCOUNT_STATE!, $managedStripeAccountDocumentVerification: ManagedStripeAccountmanagedStripeAccountDocumentVerificationManagedStripeAccountDocumentVerification!) {createManagedStripeAccount(userId: $userId, transfersEnabled: $transfersEnabled, stripeAccountId: $stripeAccountId, secretKey: $secretKey, publishableKey: $publishableKey, fieldsNeeded: $fieldsNeeded, dueBy: $dueBy, disabledReason: $disabledReason, chargesEnabled: $chargesEnabled, state: $state, managedStripeAccountDocumentVerification: $managedStripeAccountDocumentVerification) {id}}',
  variables:
  { userId: 'ciztoab79kw710158xaax95xn',
    stripeAccountId: 'acct_19yvPyLN28yLUXAH',
    chargesEnabled: true,
    transfersEnabled: false,
    fieldsNeeded: [ 'external_account', 'legal_entity.verification.document' ],
    dueBy: null,
    disabledReason: null,
    managedStripeAccountDocumentVerification: { details: null, detailsCode: null, status: 'unverified' },
    state: 'VERIFIED',
    secretKey: '*************',
    publishableKey: '****************' } }
and I got the following error
Copy code
[Error: [ { message: 'Whoops. Looks like an internal server error. Please contact us in Slack (<https://slack.graph.cool>) and send us your Request ID: cj0g637ur0tb6017815y31y37',
requestId: 'cj0g637ur0tb6017815y31y37',
path: [ 'createManagedStripeAccount' ],
locations: [ { line: 1, column: 409 } ] } ]]
n
@wallslide looks like the null values dueBy and disabledReason might be the problem
same for details and details code
w
even though those are optional fields?
removing
details
and
detailsCode
when they are
null
fixed it, thanks
n
great! We need to handle null variables differently, but hope that works for now simple smile