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
{{ message }}
Repository navigation
functions/composer-storage-trigger/index.js sends nonexistent argument "iap.jwt" to "makeIapPostRequest" #1602
It looks like the final argument in makeIapPostRequest ("jwt") was removed at some point (43cb78c#diff-03c121b657e9255e31ace2345598d678R152), but for some reason the code sample still provides it in the call to this function:
I'm investigating this now. I tried running the code in the relevant tutorial as is, and it seems to work - the DAG triggers and prints the appropriate info.
I retried adding in the jwt parameter like it was before, and the DAG triggered then too, printing the appropriate info. This occurred because the makeIapPostRequest function never reads this value. The fact that the function never reads the value is likely why it was removed in this PR that was running eslint - it removed unused parameters. The line that you highlighted managed to get leftover somehow, but has since been updated. There are now no longer any references to this unused jwt - the ones that remain are used in the service account signature request.
Thank you for opening this - I'm going to close it because as far as I can tell, the code doesn't need any updates at this time.
Activity
fhinkel commentedon Feb 11, 2020
@ace-n , could you have a look at this
functionssample? Thanksace-n commentedon Feb 12, 2020
@leahecole owns this sample (per
CODEOWNERS) - over to you 🙂meredithslota commentedon Apr 22, 2020
I'm not sure if this makes sense but I'm adding the "composer" label so this is surfaced to our team, and dropping priority to P2.
leahecole commentedon Jun 29, 2020
I'm investigating this now. I tried running the code in the relevant tutorial as is, and it seems to work - the DAG triggers and prints the appropriate info.
I retried adding in the
jwtparameter like it was before, and the DAG triggered then too, printing the appropriate info. This occurred because themakeIapPostRequestfunction never reads this value. The fact that the function never reads the value is likely why it was removed in this PR that was running eslint - it removed unused parameters. The line that you highlighted managed to get leftover somehow, but has since been updated. There are now no longer any references to this unusedjwt- the ones that remain are used in the service account signature request.Thank you for opening this - I'm going to close it because as far as I can tell, the code doesn't need any updates at this time.