node-kakao: TalkClient.login fails with -999
Describe the bug TalkClient.login method fails with status -999 update required
To Reproduce
const api = await AuthApiClient.create(process.env.TalkClientName, process.env.TalkClientUUID);
const loginRes = await api.login({ email: process.env.TalkClientLoginID, password: process.env.TalkClientLoginPW });
if(!loginRes.success) return console.error(`Web API Login failure: ${loginRes.status}`);
const client = new TalkClient({
version: '3.2.7',
appVersion: '3.2.7.2782'
});
const clientLoginRes = await client.login(loginRes.result);
if(!clientLoginRes.success) return console.error(`TalkClient Login failure: ${clientLoginRes.status}`);
TalkClient with no configs like new TalkClient({ }) on the migration-v3.md makes client with config:
version: ‘3.2.3’,
appVersion: ‘3.2.3.2698’
So I changed version config to my PC client’s newest version: 3.2.7.2782 since the error code is UPGRADE_REQUIRED, but the problem continues.
TypeDoc says expected option should be like new TalkClient({ config: { appVersion: '3.2.7.2782' } }) but this is not changing the version.
Expected behavior Successful TalkClient login
Screenshots
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (2 by maintainers)
방금 해결해서 방법 공유합니다. 아마도 신버전에서 다시 인증을 거쳐야 하는 듯 합니다.
제가 작성한 코드는 아래와 같고…
혹은 https://github.com/storycraft/node-kakao/blob/stable/examples/device-registration.ts 참고하시면 될 것 같습니다.
감사합니다. 해결했습니다.