Something went wrong error | Live Embed with BoardsPicker for unregistered users

  • 20 March 2023
  • 9 replies
  • 46 views

Userlevel 1
Badge +2

Hi , 

I am trying to create board for unregistered users . But getting “Something went wrong” in the board picker.

The API’s :

async function getTokenFromServer() {
const response = await makeApiRequest(
"POST",
backendApi,
"server/generate/jwt",
false,
{
client_id: "...", // hidden
client_secret: "...", //hidden
}
);

if (response.error) {
console.log(response.message);
return response?.message;
}

console.log("token", response.response.jwt_token);

// this returns a JWT token <string> , there is no errors in this func
return response.response.jwt_token;
}

export const initMiroBoard = () => (dispatch, getState) => {
window.miroBoardsPicker.open({
clientId: "...", // hidden
action: "access-link",
allowCreateAnonymousBoards: true,
getToken: () => getTokenFromServer(),
success: (data) => {
console.log("on success", data);
dispatch(setMiroWhiteboard(data));
},
error: (e) => {
console.log("on error", e);
},
cancel: () => {
console.log("on cancel");
},
});
};

The JWT Response from getTokenFromServer function (JWT is generated and sent to the client as a response , successfully) :

 
 
The Error : “Something went wrong” , no other errors or exceptions generated. 


Not sure what the issue is , any help is greatly appreciated .

Thanks


9 replies

Userlevel 1
Badge +2

Update : The devtools in the broadpicker gives out “temporaryBoardOwnerPropertiesNonExistent” error.

Userlevel 2
Badge +1

Hi @thedarkstrix,
To enable embedding a temporary board for unregistered users, you will need to contact Miro by submitting this form. Once your integration is approved then this error should not be visibile any more.

Userlevel 1
Badge +2

@Josip Janzic thank you for fast reply !. We have already submitted the form on 10th March . Before we submitted the form the boardPicker straight but showed “Integration not available” error when `allowCreateAnonymousBoards` was set to true with JWT passed ofcourse . Now the boardPicker automatically gave “Created Board without registration” option therefore thinking that it is approved. And we not seeing the “This integration was build by a third party developer and has not been reviewed by Miro.” warning for registered users as well. 

Provided the scenario : Considering the approval process is not completed fully, can we get the expedited in any way ?

Thanks

 

Userlevel 2
Badge +1

@thedarkstrix  If you share your App ID then I’ll be able to check the status of your request.

Userlevel 1
Badge +2

@Josip Janzic Sure, ClD: 3458764548480773183 .

Userlevel 2
Badge +1

@thedarkstrix Indeed, your application approval is still pending. I’ll try to see if we can do anything to get it approved faster, but in general the procedure can take up to one month.

Userlevel 1
Badge +2

@Josip Janzic Please do , thank you for the support .

Userlevel 2
Badge +1

@thedarkstrix your app should now be approved, could you re-try the integration now?

Userlevel 1
Badge +2

@Josip Janzic just checked, its working as expected. Thanks a lot for getting it expedited, really appreciate it .

Reply