AmazonEchoControl post url error

Hi,

I receive the following error with 3.2.0 M1 - all similar errors ar pretty old. Can anybody help?

2021-08-25 14:06:03.694 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler@15083ab': POST url 'https://alexa.amazon.de/api/tunein/queue-and-play?deviceSerialNumber=G090LV036393018L&deviceType=AB72C64C86AW2&guideId=s6175&contentType=station&callSign=&mediaOwnerCustomerId=A2W5Y7KV8MAQ6P' failed: Internal Server Error

org.openhab.binding.amazonechocontrol.internal.HttpException: POST url 'https://alexa.amazon.de/api/tunein/queue-and-play?deviceSerialNumber=G090LV036393018L&deviceType=AB72C64C86AW2&guideId=s6175&contentType=station&callSign=&mediaOwnerCustomerId=A2W5Y7KV8MAQ6P' failed: Internal Server Error

	at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:691) ~[?:?]

	at org.openhab.binding.amazonechocontrol.internal.Connection.playRadio(Connection.java:1280) ~[?:?]

	at org.openhab.binding.amazonechocontrol.internal.handler.EchoHandler.handleCommand(EchoHandler.java:503) ~[?:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

	at org.openhab.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?]

	at com.sun.proxy.$Proxy3572.handleCommand(Unknown Source) [?:?]

	at org.openhab.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:80) [bundleFile:?]

	at org.openhab.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

	at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:829) [?:?]


This is due to changes on Amazon’s side. Their own Alexa is not able to play TuneIn in WebBrowser. It’s currently unclear if they remove that functionality or if it is a temporary error. You can use textCommand or playMusicVoiceCommand instead.

Thanks Jan, I am not really sure how to replace, sorry for bothering another time:

//		sendCommand(FranksEcho_MusicProvider,TUNEIN)
		sendCommand(FranksEcho_TuneInRadioStationId,"s6175")
//		sendCommand(FranksEcho_Player,PLAY)
		sendCommand(FranksEcho_Volume,17)

Use "Play Radio Emscher Lippe On TuneIn" and send that to an item that is linked to the textCommand. channel.

Replace „Radio Emscher Lippe“ with the name of your radio station. You can use the textCommand channel in the same way you would speak to Alexa, just omit „Alexa“ as keyword.

1 Like

I guess this fix doesn’t work if one is still running on openHab 2.5?

No, the channel is not available in 2.5.x.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.