Invalid projet_id when using minidump API

Hi,

With a hosted sentry, I am trying to use the minidump API on an Electron application with crashReporter module.

https://sentry.io/api/<project-name>/minidump/?sentry_key=<key>
    crashReporter.start({
      companyName: 'companyName',
      productName: 'productName',
      ignoreSystemCrashHandler: true,
      uploadToServer: true,
      submitURL: 'https://sentry-diese.hosted/api/project-name/minidump/?sentry_key=key'
    });

But when I send a minidump I have a 400 error with Invalid project_id: u’project-name’ response whatever the project-name is.

I don’t understand why.

Have you got an idea of what I am doing wrong ?

Regards

project-name should be the numeric project id, not its slug: https://github.com/getsentry/sentry/blob/519dc0b43c006d1899e38d2d5115751fb3c03fa3/src/sentry/web/api.py#L318-L333