plutoless / eEducation

e-education solutions(Agora Reference Design)
184 stars 124 forks source link

进入房间返回Please setting herewhite token in the Console. #146

Closed cwg31825 closed 4 years ago

cwg31825 commented 4 years ago

msg: "Please setting herewhite token in the Console." code: 1101018

masonjs-cn commented 4 years ago

能说一下您是怎么解决的吗?

plutoless commented 4 years ago

@MYQ1996 需要去声网控制面板设置一些白板的token,这边可以详细阅读一下readme

masonjs-cn commented 4 years ago

@plutoless 前几天调试的时候也发现了,在项目中设置好token之后,就可以解决这个问题,非常感谢你的回答

wshsenanayaka commented 4 years ago

Can have english

wshsenanayaka commented 4 years ago

Same Problem - "Please setting herewhite token in the Console"

yoreland commented 4 years ago

You need configure whiteboard token on agora console. You could find the detailed guideline in project readme.

wshsenanayaka commented 4 years ago

I Created the netless Account and get SDK-Token After I put that Token here --

Screen Shot 2020-06-09 at 4 02 50 PM

wshsenanayaka commented 4 years ago

agora http basic authorization

REACT_APP_AGORA_RESTFULL_TOKEN=agora_restful_api_token

agora_restful_api_token ---- ???

yoreland commented 4 years ago

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="

wshsenanayaka commented 4 years ago

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

yoreland commented 4 years ago

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.

wshsenanayaka commented 4 years ago

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

yoreland commented 4 years ago

please try REACT_APP_AGORA_RESTFULL_TOKEN="NWJkYTFmZWFkYmI0NDVkNWIwM2U2Njc2M2RiYzZiM2U6YmViZmI5N2U3YmI5NDJkYThhZTAzMWZiOTZhODE0MWY="

wshsenanayaka commented 4 years ago

I trt it but same error ...

wshsenanayaka commented 4 years ago

Screen Shot 2020-06-09 at 5 15 52 PM

wshsenanayaka commented 4 years ago

Same Problem - "Please setting herewhite token in the Console"

wshsenanayaka commented 4 years ago

What is herewhite token in Console ??? How to generate

yoreland commented 4 years ago

herewhite equals nettles. So can you double check the nettles token has been correctly configured ?

wshsenanayaka commented 4 years ago

how to nettles token has been correctly config

wshsenanayaka commented 4 years ago

I got the SDK-Token form console netless

yoreland commented 4 years ago

Can you provide a GitHub link for your current project and I could have a check?

wshsenanayaka commented 4 years ago

https://github.com/wshsenanayaka/agora-edu.git

tuanna2 commented 4 years ago

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

Nondukishor commented 4 years ago

https://github.com/wshsenanayaka/agora-edu.git

Have you solved this problem?

gauravgupta369 commented 4 years ago

@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.