question

Coway avatar image
Coway asked

I called api for an enable skill and link account. but it was responsed with 403 error.

Hello

I called api for an enable skill and link account.

but it was responsed with 403 error.

My skillid is correct and unexpired access token is put in the header.

The content-type was also written as 'application/json' and put in the header.

Could you give me a solution to this?

Please refer to below for the log about this.

Thank you.



### requestEntity : <{stage=development, accountLinkRequest={redirectUri=https://iocareapp2.coway.com:4500/bizmob.iocare/dartComplete, authCode=ANzddeqdDOtOVrGaQmOr, type=AUTH_CODE}},{Authorization=[Bearer Atza|IwEBIPRswTHKeftTEmohUeZqoRVqF3bMNl39gSOeYcVgPXkonUzkN8JkoQ-XjLtP6NI6FM72Ieed_1OCxol5-HTznJadstMCRIRKsjbaE1CsPkEi0v2wrh9HRtvi2mhXSZ2NR-VXUV9d6bsPENjPL1jplxb4kpOjE50TQ0in8_oSGL1-L2JEQE7JgLFAYl4akzHXCH_9gxyyM-0E2j33zViKZCHvdDp4LokrfFFggMutXqU7hwmxPM8E_AssvbbnkLnk4pft5SEkXNcLU_3556ShA_qWHayMygOptDioNZ6rf7XpNEfsMAHbSL-nbpK-7mf8omq4s6PVvP9WWxLA5GtdTiAdUn_J505tEzvFLneEZaed3l4Bi-rPVqWAonw8fL4ogmoZNuhfSLznm07q6MBk4jv_GbN-kSMSFfraI3vXaTne-USBpy0YoobCpdMUyp6iwvNjIIXVYVcBpdEe7IdwmbDd], Content-Type=[application/json]}>

DEBUG 2020-12-24 17:57:46,079 [http-nio-4500-exec-83] [org.springframework.web.client.RestTemplate] Created POST request for "https://api.amazonalexa.com/v1/users/~current/skills/amzn1.ask.skill.c304dd39-9d67-415b-8fa3-5adc64d3509f/enablement"

DEBUG 2020-12-24 17:57:46,080 [http-nio-4500-exec-83] [org.springframework.web.client.RestTemplate] Setting request Accept header to [application/json, application/*+json]

DEBUG 2020-12-24 17:57:46,080 [http-nio-4500-exec-83] [org.springframework.web.client.RestTemplate] Writing [{stage=development, accountLinkRequest={redirectUri=https://iocareapp2.coway.com:4500/bizmob.iocare/dartComplete, authCode=ANzddeqdDOtOVrGaQmOr, type=AUTH_CODE}}] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@36c3774a]

DEBUG 2020-12-24 17:57:46,418 [http-nio-4500-exec-83] [com.mcnc.coway.common.util.commonIdpException] Status code: 403

DEBUG 2020-12-24 17:57:46,418 [http-nio-4500-exec-83] [com.mcnc.coway.common.util.commonIdpException] ResponseForbidden

DEBUG 2020-12-24 17:57:46,418 [http-nio-4500-exec-83] [com.mcnc.coway.common.util.commonIdpException] org.apache.http.conn.EofSensorInputStream@4ba84a52

WARN 2020-12-24 17:57:46,418 [http-nio-4500-exec-83] [org.springframework.web.client.RestTemplate] POST request for "https://api.amazonalexa.com/v1/users/~current/skills/amzn1.ask.skill.c304dd39-9d67-415b-8fa3-5adc64d3509f/enablement" resulted in 403 (Forbidden); invoking error handler

DEBUG 2020-12-24 17:57:46,419 [http-nio-4500-exec-83] [com.mcnc.coway.common.util.commonIdpException] 403 response. Throwing exception

ERROR 2020-12-24 17:57:46,419 [http-nio-4500-exec-83] [com.mcnc.coway.iocare.api.AmazonDART] DART API ERROR; nested exception is org.springframework.web.client.RestClientException: HTTP Status: 403

account linking
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers