- 신규로 표시
- 북마크
- 구독
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
08-05-2025 05:10 PM ·
SmartThingsST 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가 값을 전송은 해주는데..
값이 없는 것만 던져 주는 현상입니다.
- 신규로 표시
- 구독
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
08-06-2025 05:08 PM ·
SmartThings삼성 개발자 포럼에 질문해야 하지 않을까요? 여긴 일반 사용자 커뮤니티라서 개발 관련까지 답변을 해주는지는 모르겠네요
