Closed cwg31825 closed 4 years ago
能说一下您是怎么解决的吗?
@MYQ1996 需要去声网控制面板设置一些白板的token,这边可以详细阅读一下readme
@plutoless 前几天调试的时候也发现了,在项目中设置好token之后,就可以解决这个问题,非常感谢你的回答
Can have english
Same Problem - "Please setting herewhite token in the Console"
You need configure whiteboard token on agora console. You could find the detailed guideline in project readme.
I Created the netless Account and get SDK-Token After I put that Token here --
REACT_APP_AGORA_RESTFULL_TOKEN=agora_restful_api_token
agora_restful_api_token ---- ???
agora http basic authorization
REACT_APP_AGORA_RESTFULL_TOKEN=agora_restful_api_token
agora_restful_api_token ---- ???
You need use customer_id and customer_token to generate a base64 token. Some thing like: REACT_APP_AGORA_RESTFULL_TOKEN="MzgzMzM3***NGNhZTQ="
How i can generate -- You need use customer_id and customer_token to generate a base64 token.
My REACT_APP_AGORA_CUSTOMER_ID=5bda1feadbb445d5b03e66763dbc6b3e REACT_APP_AGORA_CUSTOMER_CERTIFICATE=bebfb97e7bb942da8ae031fb96a8141f
there is the link for this guideline https://docs.agora.io/en/faq/restful_authentication if you have trouble to generate base64 ecode string. There should be some online tools on internet as it is a very common function.
I try it can you help me to generate base64 ecode string
My REACT_APP_AGORA_CUSTOMER_ID=5bda1feadbb445d5b03e66763dbc6b3e REACT_APP_AGORA_CUSTOMER_CERTIFICATE=bebfb97e7bb942da8ae031fb96a8141f
please try REACT_APP_AGORA_RESTFULL_TOKEN="NWJkYTFmZWFkYmI0NDVkNWIwM2U2Njc2M2RiYzZiM2U6YmViZmI5N2U3YmI5NDJkYThhZTAzMWZiOTZhODE0MWY="
I trt it but same error ...
Same Problem - "Please setting herewhite token in the Console"
What is herewhite token in Console ??? How to generate
herewhite equals nettles. So can you double check the nettles token has been correctly configured ?
how to nettles token has been correctly config
I got the SDK-Token form console netless
Can you provide a GitHub link for your current project and I could have a check?
You can fix this problem by removing the ! after Basic ${AUTHORIZATION in /src/services/edu-api.ts in function AgoraFetchJson.
In .env.local: Convert "customerId:customerCertificate" to Base64 and paste into REACT_APP_AGORA_RESTFULL_TOKEN
Have you solved this problem?
@Nondukishor I have solved the problem.
First of all, you need to create 2 accounts, 1st on agora and 2nd on netless, then...
Step1: Get APP_ID, CUSTOMER_ID, and CUSTOMER_CERTIFICATE from the Agora Console.
Step2: Create a Base64 encoded string of (CUSTOMER_ID:CUSTOMER_CERTIFICATE), it's a normal base64 encoded string you can easily convert a string to a bast64 on google.
REACT_APP_AGORA_RESTFULL_TOKEN=Base64(CUSTOMER_ID:CUSTOMER_CERTIFICATE)
Step3: Create a netless whiteboard token and add it to the Agora Console.
I was missing step3, and I guess others were not creating the right base64 token. Hope this will help you.
msg: "Please setting herewhite token in the Console." code: 1101018