Sorry. A temporary server error occurred: App with this name already exists"

Hi folks,

I’m trying to register my first SmartApp over at https://smartthings.developer.samsung.com. I get through to the custom parameters screen, but when I click save I get a 400 response code and the message:

Sorry. A temporary server error occurred. Please try again in a few minutes. App with this name already exists.

The message seems to be self-contradictory: If it’s a temporary server error (which should be identified by a 5xx HTTP response), in which case trying again in a few minutes would be a valid remedy.

However if it’s actually the case of a duplicate app name then trying again in a few minutes would make no sense. For what it’s worth I’ve tried using various different app names and I always get the same error. This leads me to wonder if there’s a systemic problem registering smartapps?

Here’s the full HTTP response:

{
  "resultCode": "40221",
  "resultMsg": "Sorry. A temporary server error occurred. Please try again in a few minutes.\nApp with this name already exists",
  "resultDetail": {
    "status": "422",
    "message": "The request is malformed.",
    "response": {
      "requestId": "DDC09707BD1C42848C90F7AB107165E1-MWJK",
      "error": {
        "code": "ConstraintViolationError",
        "message": "The request is malformed.",
        "target": null,
        "details": [
          {
            "code": "ConflictError",
            "message": "App with this name already exists",
            "target": "app_name",
            "details": []
          }
        ]
      }
    }
  },
  "referenceId": "DDC09707BD1C42848C90F7AB107165E1"
}

Grateful if someone could take a look and advise?

Many thanks,

Edd

Tagging @nayelyz

1 Like

Hi, @edd.grant, welcome back to the SmartThings Community!

Did you configure any custom parameters? Also, in the name, did you avoid keywords like SmartThings or one of an existing SmartApp in the ST app?

Hi @nayelyz ,

Thanks for getting back to me.

I tried twice, once with and once without custom parameters. What bearing would this have?

Both attempts the name contained the string “smartthings”. Is this a reserved term?

Many thanks,

Edd

I just wanted to check if this was an important difference that could be causing a strange behavior but it doesn’t seem to be the case

I’m not sure, what I’ve seen before is when people used only the string “smartthings” and caused issues, maybe after that, a restriction was implemented. Please, try without this text to see if there’s a difference.

Hi @nayelyz

I have tried again and have removed all references to the string smartthings and it has worked this time.

I’m not sure if its coincidence that it worked this time or if there are some undocumented reserved strings perhaps. Thanks for your assistance though.

I’ll try to replicate this and open a report about it to see if we can add a note somewhere.
Thank you for bringing this up!

1 Like