Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCPClient를 전역으로 설정해두고 오래 사용하니 unauthorized에러 발생 #2

Closed
darron1217 opened this issue Nov 11, 2020 · 4 comments

Comments

@darron1217
Copy link
Contributor

new NCPClient()로 인스턴스를 생성하여 전역변수로 지정하고 사용중입니다.

처음엔 발송이 잘 되다가 몇시간후부터 unauthorized에러가 발생하는데, 왜 그런건지 메세지가 구체적이지 않아 원인을 잘 모르겠습니다.

추정으로는 timestamp변수와 연관된것 같은데, timestamp는 construct시점이 아닌, send시점에 생성되어야 하는게 아닐지 궁금합니다

@darron1217
Copy link
Contributor Author

https://apidocs.ncloud.com/ko/ai-application-service/sens/sms_v2/#api-header
Timestamp 때문이 맞는것 같네요 5분제한 되어있네요ㅎ
제가 PR을 올려볼까요?

@bumkeyy
Copy link
Owner

bumkeyy commented Nov 11, 2020

https://apidocs.ncloud.com/ko/ai-application-service/sens/sms_v2/#api-header
Timestamp 때문이 맞는것 같네요 5분제한 되어있네요ㅎ
제가 PR을 올려볼까요?

넵! 그럼 감사하겠습니다 😄

@darron1217
Copy link
Contributor Author

@bumkeyy PR올렸습니다 확인부탁드릴께요 :)

@bumkeyy
Copy link
Owner

bumkeyy commented Nov 17, 2020

@darron1217

v1.3.0에 적용됬습니다.

감사합니다 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants