Forum in maintenance, we will back soon 🙂
earthquake gpt giving this error
Please enter a topic: 5 Innovative Ways to Boost Brain Power in 2023
Searching....
DevTools listening on ws://127.0.0.1:56764/devtools/browser/77fdc528-7798-40bb-95ca-a439ddf70545
[0530/235327.522:INFO:CONSOLE(1)] "The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header .", source: https://www.google.com/search?q=5%20Innovative%20Ways%20to%20Boost%20Brain%20Power%20in%202023&start=0&gws_rd=ssl (1)
[0530/235330.473:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0)
--------------------------
Results Found: 5
Result:Â
--------------------------
Reading...
Unable To Read!
Result:Â
Reading...
Unable To Read!
Result:Â
Reading...
Unable To Read!
Result:Â
--------------------------
Reading...
Unable To Read!
Result:Â
--------------------------
Reading...
Unable To Read!
PDF Report Created!
Press any key to continue . . .
HI! please double check that your open AI account is working. it seems that your API key or open AI is not returning any response
@admin thanks , it worked
Hi @admin
Hasan, Amazing work on putting the script together!! Can I ask for a quick pointer.
I seem to have a similar error, but I checked my API key and even generated a new one from Open AI
When I run the script I get the following error:
DevTools listening on ws://127.0.0.1:53335/devtools/browser/6cd89f8b-d590-43e5-a661-3f1fea25d3e1
[0603/084920.348:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source: (0)
[0603/084920.357:INFO:CONSOLE(1)] "The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header .", source: https://www.google.com/search?q=blockchain&start=0&gws_rd=ssl (1)
[0603/084922.677:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0)
[0603/084923.279:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source: (0)
[0603/084924.840:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'.", source: (0)
[0603/084925.861:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source: (0)
[0603/084927.893:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source: (0)
Â
any ideas what could be wrong?
@vasmod Thanks, and it stops? or continues?
@vasmod This sounds similar to THIS POST
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
Thank you @ssadvisor and @admin, I checked the other thread and even if the problem seems similar I am not sure that the fix applies to me. I am not aware of using my GPT Plus API for anything else so I don't think that I am out of quota. I even created a new API and then copied that into the python file but still not working.Â
I am technical but not a developer so I wouldn't know how to troubleshoot. any commands or actions you can propose I run or take to do some basic troubleshooting?\
Thank you
import openai openai.api_key = "sk-XXX" def basic_generation(user_prompt,  selected_model: str):   completion = openai.ChatCompletion.create(     model=selected_model, messages=[{"role": "user", "content": user_prompt}]   )   response = completion.choices[0].message.content   return response print(basic_generation("generate anything","gpt-3.5-turbo"))
@admin if we go back to the first message we see "5 results" so this isn't your script or a connection to OpenAPI issue. The messages are browser related.
@vasmod what browser are you using and what version is it?Â
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
These messages seem to be coming from the browser console when using a web-based application. The application is likely hosted locally (on 'localhost') or on a site that the browser does not recognize as secure.
1. **Cross-Origin-Opener-Policy header ignored**: This warning comes up because the application is being served over HTTP instead of HTTPS, or the origin is not 'localhost'. The Cross-Origin-Opener-Policy (COOP) header is a security feature that isolates your documents from other origins, and it requires a secure context. To resolve this, ensure your application is delivered using the HTTPS protocol. If you're developing locally, you can use 'localhost' to bypass this requirement.
2. **Error with Permissions-Policy header**: This error message is saying that a policy named 'ch-ua-form-factor' was specified in the Permissions-Policy HTTP header, but it's not recognized. The Permissions-Policy header is used for enabling or disabling certain browser features and APIs in the context of your site. The 'ch-ua-form-factor' is a Client Hint Header, used for proactive content negotiation. It seems like the browser you are using does not recognize this feature. If you're not using this feature, you can safely ignore this message. If you are trying to use it, check the browser support for 'ch-ua-form-factor'.
Remember, these messages are informational and often used for debugging. They do not necessarily indicate a problem with your website, but rather something that you could consider improving.
References:
- [Cross-Origin-Opener-Policy]( https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy)
- [Permissions-Policy]( https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy)
- [Client Hint Headers]( https://developer.mozilla.org/en-US/docs/Glossary/Client_hints)
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack