japri 0 Posted October 31, 2023 (edited) Hi fellow delphi, i'm try to run bardapi via p4d. from this github https://github.com/dsdanielpark/Bard-API and try to run this example code. token = 'xxxxxxx' bard = Bard(token=token) bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")['content'] when it run in command line it works correctly. but when i run it in the p4d it gives error. site-packages\bardapi\core.py", line 154, in _get_snim0e raise Exception( Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'. //of course i have change the xxxx to the correct token. anyone has any idea how to fix it?.... Edited October 31, 2023 by japri additional information Share this post Link to post
KoRiF 1 Posted November 16, 2023 Hi, your issue is from here : snim0e = re.search(r"SNlM0e\":\"(.*?)\"", resp.text) check your "resp" value and does it fits to regular expression as expected generally speaking, your problem may have nothing to do with Delphi anyway, debugging is required on the python side to determine the cause have you read the Authentification section? (tools like Postman can also help) Share this post Link to post