File tree Expand file tree Collapse file tree
src/api/integrations/channel/whatsapp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " evolution-api" ,
3- "version" : " 2.3.7-railway.2 " ,
3+ "version" : " 2.3.7-railway.3 " ,
44 "description" : " Rest api for communication with WhatsApp" ,
55 "main" : " ./dist/main.js" ,
66 "type" : " commonjs" ,
Original file line number Diff line number Diff line change @@ -576,6 +576,12 @@ export class BaileysStartupService extends ChannelStartupService {
576576 private async createClient ( number ?: string ) : Promise < WASocket > {
577577 this . instance . authState = await this . defineAuthState ( ) ;
578578
579+ if ( ! this . instance . authState || ! this . instance . authState . state ) {
580+ throw new BadRequestException (
581+ 'Failed to initialize authentication state. Please check database configuration (DATABASE_SAVE_DATA_INSTANCE should be true).' ,
582+ ) ;
583+ }
584+
579585 const session = this . configService . get < ConfigSessionPhone > ( 'CONFIG_SESSION_PHONE' ) ;
580586
581587 let browserOptions = { } ;
You can’t perform that action at this time.
0 commit comments