DataDog / datadog-fastlane-plugin

Datadog's fastlane plugin for iOS development
Apache License 2.0
5 stars 1 forks source link

API key always invalid when uploading symbols #11

Closed JAIRMG closed 3 months ago

JAIRMG commented 3 months ago

Hi hi, I am trying to upload the dSYM file using the fastlane plugin. My code looks like this:

        upload_symbols_to_datadog(
            api_key: "my_key",
            site: 'datadoghq.eu',
            dsym_paths: [
            '/Users/vagrant/git/myAppName.app.dSYM.zip'
          ]
        )

However, I always receive the following error:

❌ Configuration error: Error: DATADOG_API_KEY does not contain a valid API key for Datadog site datadoghq.eu.

I also tried adding the env variable into my CI (Bitrise) with no success.

I created this api key in Application Keys section with the 'Datadog Standard Role' Any idea what could be happening?

Thanks in advance

JAIRMG commented 3 months ago

Closing this. I found out that mistakenly I was using application key instead of api key. Apologies for the confusion