project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
338 stars 277 forks source link

Bug: Failed to upload audio #1044

Closed zzettazz closed 11 months ago

zzettazz commented 11 months ago

Development Issue

Yes

Phone Version

1.7.2

Issue Description

Cant send voice messages

Issue Reproduction

  1. Open phone
  2. Try to send a voice message

Evidence

image image

itschip commented 11 months ago

Where did you add the api token? (dont show the token)

zzettazz commented 11 months ago

config.json:

"voiceMessage": { "enabled": true, "authorizationHeader": "Authorization", "url": "https://api.fivemanage.com/api/audio", "returnedDataIndexes": ["url"] },

Server.cfg: set NPWD_AUDIO_TOKEN my_token

itschip commented 11 months ago

Are you sure that the token you have passed is correct? I'll update the error message, so we get some more details about what's happening, but it seems like the token does not exist

zzettazz commented 11 months ago

Yes, also generated a new token, and also got same error

itschip commented 11 months ago

@zzettazz please try again now.

zzettazz commented 11 months ago

Still getting error message

itschip commented 11 months ago

Still getting error message

What does the error message say?

zzettazz commented 11 months ago

Error getting messages

itschip commented 11 months ago

Please create a new issue :)