-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Suddenly Wouldn't work, And this is returned after I enabled debug mode: ClientSecretCredential authentication failed #499
Labels
bug
Something isn't working
Comments
BarryAllen-Arrow
changed the title
Suddenly Wouldn't work, And this is returned after I enabled debug mode
Suddenly Wouldn't work, And this is returned after I enabled debug mode: ClientSecretCredential authentication failed
Oct 29, 2023
it's now returning this: "BingProdUnAuthenticatedUsers{ |
Confirmed. async (req, res) => {
try {
const { message, _U } = req.body;
const typeVariant = req.typeVariant || 'Creative';
const options = {
// Necessary for some people in different countries, e.g. China (https://cn.bing.com)
// "_U" cookie from bing.com
userToken: _U || process.env.BING_COOKIE,
// If the above doesn't work, provide all your cookies as a string instead
// A proxy string like "http://<ip>:<port>"
// (Optional) Set to true to enable `console.debug()` logging
debug: true,
};
const cacheOptions = {
// Options for the Keyv cache, see https://www.npmjs.com/package/keyv
// This is used for storing conversations, and supports additional drivers (conversations are stored in memory by default)
// For example, to use a JSON file (`npm i keyv-file`) as a database:
store: new Map(),
};
const sydneyAIClient = new BingAIClient({
...options,
cache: cacheOptions,
});
let jailbreakResponse = await sydneyAIClient.sendMessage(message, {
jailbreakConversationId: true,
onProgress: (token) => {
process.stdout.write(token);
},
});
console.log(jailbreakResponse);
// const response = await api.sendMessage(message,
// { locale: 'tr-TR', market: 'tr-TR', region: 'TR', variant: typeVariant });
res.json({ text: jailbreakResponse.response });
} catch (error) {
console.log(error);
res.status(500).json({ error: 'Sunucu hatası' });
}
} Result:
I'm using a valid _U cookie. I also tried after adding all the cookies. Again the result is the same. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unhandled Exception
---> ClientSecretCredential authentication failed: A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000222: The provided client secret keys for app 'f8742d71-a9af-4291-a6e3-8f225540a102' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: da3e8f98-afef-4a1f-ac5c-a65effd34500 Correlation ID: 257666b4-e90a-479b-8882-cf13f0a6c724 Timestamp: 2023-10-29 15:31:00Z
seems like an authentication problem...but I'm very sure my cookies are valid, the program just suddenly broke when the last question is handled pretty well
The text was updated successfully, but these errors were encountered: