Skip to content

Prompt Engineering Forum

A Private Forum For Premium Users

earthquake gpt givi...
 
Notifications
Clear all

earthquake gpt giving this error

11 Posts
4 Users
5 Likes
311 Views
(@pra-shant)
Posts: 4
Active Member
Points: 19
Topic starter
 

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 . . .

 
Posted : 30/05/2023 6:32 pm
Topic Tags
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

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

 
Posted : 31/05/2023 8:35 am
pra.shant reacted
(@pra-shant)
Posts: 4
Active Member
Points: 19
Topic starter
 

@admin thanks , it worked

 
Posted : 31/05/2023 3:18 pm
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

@pra-shant Great!

 
Posted : 01/06/2023 7:40 am
(@vasmod)
Posts: 2
New Member
Points: 14
 

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?

 
Posted : 03/06/2023 4:56 am
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 

@vasmod Thanks, and it stops? or continues?

 
Posted : 03/06/2023 5:08 am
SSAdvisor
(@ssadvisor)
Posts: 263
Reputable Member
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
Points: 1056
 

@vasmod This sounds similar to THIS POST

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
https://calendly.com/seasonedsolutionsadvisor

 
Posted : 03/06/2023 8:50 pm
(@vasmod)
Posts: 2
New Member
Points: 14
 

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

 
Posted : 05/06/2023 6:37 pm
(@admin)
Posts: 456
Member Admin
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
API Entrepreneur
Points: 1130
 
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"))
 
Copy this code, and try to execute it alone. and see if it is working
 
 
Posted : 06/06/2023 10:15 am
SSAdvisor
(@ssadvisor)
Posts: 263
Reputable Member
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
Points: 1056
 

@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
https://calendly.com/seasonedsolutionsadvisor

 
Posted : 06/06/2023 6:46 pm
SSAdvisor
(@ssadvisor)
Posts: 263
Reputable Member
Premium Member
Pythonista Prodigy Badge
Prompt Engineer
Points: 1056
 

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
https://calendly.com/seasonedsolutionsadvisor

 
Posted : 06/06/2023 6:47 pm

Share:
Take Your Digital Marketing Skills To The Next Level

© 2023 LearnWithHasan | All Rights Reserved.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

🔴 New Series Started: Programming With AI - RJP Technique
This is default text for notification bar