Oauth Error for Obtaining Access Code 500

After following the tutorial: http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part1.html I ran into the same 500 error problem

Adding an input device got me past the 500 error (editing the preferences in the code to include an actual input).

I then hit a second error “no devices” error. I solved this by calling my input “devices” (Even when selecting devices).

preferences {
 section ("Allow external service to control these things...") {
  input "devices", "capability.switch", multiple: true, required: false
 }
}

Let me know if this helps anyone else, it could have just been someone fixed the server…

Update It would appear the device name doesn’t matter. Its the required flag that was changed to false that allowed me to proceed.

1 Like