취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

제목:

ST Cloud로 개발중인데요.. ST 앱에서 Cloud 연결된 서비스 삭제관련 질문입니다.

(게시글 작성 시간: 08-05-2025 05:10 PM)
333 보기
Members_MItRRhY
Beginner Level 2
옵션
SmartThings

ST Cloud connected device를 개발중인데.

ST App에서 ST Cloud connected device를 정상적으로

등록을 했습니다.

ST App에서 사용자가 "연결된 서비스"에 가서  ST Cloud connected device를 연결해제하면

ST Server가 ST Cloud connector 에게

https://developer.smartthings.com/docs/devices/cloud-connected/interaction-types#integration-deleted

{
"headers": {
"schema": "st-schema",
"version": "1.0",
"interactionType": "integrationDeleted",
"requestId": "abc-123-456"
},
"authentication": {
"tokenType": "Bearer",
"token": "token received during oauth from partner"
}
}
위 링크 정보처럼.. integrationDeleted 를  전송한다고 하는데..  ST Cloud connector 서버에서 로그를 찍어 보면

body에 어떤 정보도 없고 header에도 기존에 정의된 정보가 전송이 되지 않습니다.

 

[2025.08.05 11:35:32] [./routes/schema.js ] [/] req.body:
{}
[2025.08.05 11:35:32] [./routes/schema.js ] [/] req.headers:
{
"host": "oauth0623.test.app",
"user-agent": "SmartThings Integration",
"content-length": "2",
"accept": "*/*",
"accept-encoding": "gzip, br",
"cdn-loop": "cloudflare; loops=1",
"cf-connecting-ip": "2600:1f18:70d5:5f10:11d6:1a74:4971:4262",
"cf-ipcountry": "US",
"cf-ray": "96a2e6d4d80ed698-IAD",
"cf-visitor": "{\"scheme\":\"https\"}",
"cf-warp-tag-id": "1e614a5e-76d0-4805-8753-67a1a19c1e5b",
"connection": "keep-alive",
"content-type": "application/json",
"x-forwarded-for": "2600:1f18:70d5:5f10:11d6:1a74:4971:4262",
"x-forwarded-proto": "https"
}
[2025.08.05 11:35:32] [./routes/schema.js ] [/] req.method: POST
[2025.08.05 11:35:32] [./routes/schema.js ] [/] req.url: /
[2025.08.05 11:35:32] [./routes/schema.js ] [/] req.rawBody: {}
[2025.08.05 11:35:32] [./routes/schema.js ] [/] req.body length: 2
[2025.08.05 11:35:32] [./routes/schema.js ] [/] === SMARTTHINGS REQUEST ANALYSIS ===
[2025.08.05 11:35:32] [./routes/schema.js ] [/] No valid headers found in request
[2025.08.05 11:35:32] [./routes/schema.js ] [/] === END ANALYSIS ===
[2025.08.05 11:35:32] [./routes/schema.js ] [/] Response status: 200
[2025.08.05 11:35:32] [./routes/schema.js ] [/] Response headers: {"x-powered-by":"Express","content-type":"application/json; charset=utf-8","content-length":"158","etag":"W/\"9e-Icrx/v95YVECstHUxUM46SZ9qCM\"","set-cookie":["connect.sid=s%3A_z9EOQsJZjHs3R43zFCqaPWWdv5aJMJe.DZSp8gre%2F0IBVcfCguh4sp8UIEykksf8swOJB%2FDdGYw; Path=/; HttpOnly"]}

ST Server가 ST Cloud Connector에게 전송한다고 되어 있고.. 전송하는 조건은..

A SmartThings Schema integration is deleted from the SmartThings platform when any of the following conditions are met:

The user deletes all devices discovered by the integration.

The user removes the integration from "Linked services" on the SmartThings App.

A State Callback with the "INTEGRATION-DELETED" global error is received.

요약하면..

사용자가 ST 앱상에서 ST Cloud connector 연결을 해제 한경우에..
ST Cloud connector에 ST Server가 값을 전송은 해주는데..
값이 없는 것만 던져 주는 현상입니다.

 

 

0 좋아요
1 댓글
쑴잇
Active Level 6
SmartThings

삼성 개발자 포럼에 질문해야 하지 않을까요? 여긴 일반 사용자 커뮤니티라서 개발 관련까지 답변을 해주는지는 모르겠네요

0 좋아요