diff --git a/script/release/get-url-hash.ts b/script/release/get-url-hash.ts index ebbf5bce54c6..dc4bb77672a2 100644 --- a/script/release/get-url-hash.ts +++ b/script/release/get-url-hash.ts @@ -28,7 +28,9 @@ export async function getUrlHash (targetUrl: string, algorithm = 'sha256', attem } if (!resp.body) throw new Error('Successful lambda call but failed to get valid hash'); - return resp.body.trim(); + // response shape should be { hash: 'xyz', invocationId: "abc"} + const { hash } = JSON.parse(resp.body.trim()); + return hash; } catch (err) { if (attempts > 1) { const { response } = err as any;