We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7431530 commit d30caf4Copy full SHA for d30caf4
utils/methods.go
@@ -142,6 +142,9 @@ func RefreshAstraToken(chromedpCtx context.Context) map[string][]string {
142
chromedp.WaitVisible(`body`, chromedp.ByQuery),
143
chromedp.ActionFunc(func(ctx context.Context) error {
144
cookies, err := network.GetCookies().Do(ctx)
145
+ if err != nil {
146
+ return err
147
+ }
148
gotToken := false
149
for _, cookie := range cookies {
150
log.Printf("5.3.1 %s=%s; ", cookie.Name, cookie.Value)
@@ -156,7 +159,7 @@ func RefreshAstraToken(chromedpCtx context.Context) map[string][]string {
156
159
if !gotToken {
157
160
return errors.New("failed to get a new token")
158
161
}
- return err
162
+ return nil
163
}),
164
)
165
log.Print("5.3.3")
0 commit comments