You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/frames.js/src/getUserDataForFid.ts
+27-16Lines changed: 27 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ import type { HubHttpUrlOptions, UserDataReturnType } from "./types";
6
6
* Returns the latest user data for a given Farcaster users Fid if available.
7
7
*/
8
8
exportasyncfunctiongetUserDataForFid<
9
-
OptionsextendsHubHttpUrlOptions|undefined,
9
+
OptionsextendsHubHttpUrlOptions|undefined
10
10
>({
11
11
fid,
12
12
options ={},
@@ -34,32 +34,42 @@ export async function getUserDataForFid<
34
34
.catch(async()=>{
35
35
// body has not been
36
36
thrownewError(
37
-
`Failed to parse response body as JSON because server hub returned response with status "${userDataResponse.status}" and body "${awaituserDataResponse.clone().text()}"`
37
+
`Failed to parse response body as JSON because server hub returned response with status "${
38
+
userDataResponse.status
39
+
}" and body "${awaituserDataResponse.clone().text()}"`
0 commit comments