im using readyplayerme api and i want to make a post to Assign a specific template to…
- User
im using readyplayerme api and i want to make a post to Assign a specific template to the user to this address: https://api.readyplayer.me/v2/avatars/templates/[template-id] which want an Authorization* Bearer [token] as header and for the body it want a partner* of type string description: Application subdomain and also a bodyType* type: fullbody description: Avatar type, what the correct way to make this post?
- Assistant
- User
fetching the avatar glb with the id in this link https://api.readyplayer.me/v2/avatars/[avatar-id].glb?preview=true im sure the id is right i fetched the last one asseigned to the user but when i do the get and subscribe i get this error as a response: make-avatar.component.ts:73 ERROR HttpErrorResponse {headers: HttpHeaders, status: 200, statusText: 'OK', url: 'https://api.readyplayer.me/v2/avatars/662fe4d746fb66980722bd82.glb?preview=true', ok: false, …} error : {error: SyntaxError: Unexpected token 'g', "glTF�"... is not valid JSON at JSON.parse (…, text: 'glTF\x02\x00\x00\x00�\x7F\r\x00�w\x00\x00JSON{"asset":{"generator":"Ready P…\x00\x00\x04��\x00\x14\x11\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00��\x00\f\x03\x01\x00\x02\x11\x03\x11\x00?\x00�\x01\x0F\x7F��\x00\x00\x00\x00'} headers : HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, lazyInit: ƒ} message : "Http failure during parsing for https://api.readyplayer.me/v2/avatars/662fe4d746fb66980722bd82.glb?preview=true" name : "HttpErrorResponse" ok : false status : 200 statusText : "OK" url : "" [[Prototype]] : HttpResponseBase
- Assistant
- User
make-avatar.component.ts:83 ERROR HttpErrorResponse {headers: HttpHeaders, status: 200, statusText: 'OK', url: 'https://api.readyplayer.me/v2/avatars/662fe9b8d95b9c1d58f16749.glb', ok: false, …} error : error : SyntaxError: Unexpected token 'g', "glTF�"... is not valid JSON at JSON.parse () at XMLHttpRequest.onLoad (http://localhost:4200/vendor.js:90298:39) at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:93107:171) at http://localhost:4200/vendor.js:114590:49 at AsyncStackTaggingZoneSpec.onInvokeTask (http://localhost:4200/vendor.js:114590:30) at _ZoneDelegate.invokeTask (http://localhost:4200/polyfills.js:93107:54) at Object.onInvokeTask () at _ZoneDelegate.invokeTask () at Zone.runTask () at ZoneTask.invokeTask [as invoke] () text : "glTF\u0002\u0000\u0000\u0000�\r\u0000�w\u0000\u0 [[Prototype]] : Object headers : HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, lazyInit: ƒ} message : "Http failure during parsing for " name : "HttpErrorResponse" ok : false status : 200 statusText : "OK" url : "" [[Prototype]] : HttpResponseBase
- Assistant