httpie / desktop

🚀 HTTPie Desktop — cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs.
https://httpie.io
Other
2.97k stars 32 forks source link

[Bug]: Blank screen shortly after use - Intel Mac #12

Closed rylan-michael closed 2 years ago

rylan-michael commented 2 years ago

What happened?

I started using the HTTPie Desktop application for Intel Macs and after about 10 minutes after the first run the application went blank. I haven't been able to fix the issue and have reinstalled. Is there a way for me to clear caches or reset state?

image

Steps to reproduce?

Not sure it can be reproduced but...

1. Installed application.
2. Opened and began exploring the features like cycling through request previews and collections.
3. After about 10 min screen goes blank.

What did you expect to happen?

I expected the application to return a user interface after force refreshing, or closing and reopening the application.

Platform

macOS

HTTPie Desktop version

2022.6.0

Relevant log output

dependencies.js:15 TypeError: Cannot read properties of undefined (reading 'toUpperCase')
    at dependencies.js:15
    at Array.map (<anonymous>)
    at Function.formatHeaderName (dependencies.js:15)
    at Function.groupHeadersForDisplay (dependencies.js:15)
    at Function.getHeaderLines (dependencies.js:15)
    at Function.getHeaders (dependencies.js:15)
    at q.getHeaders (dependencies.js:15)
    at q.getHeadersWithStartLine (dependencies.js:15)
    at q.toString (dependencies.js:15)
    at Cj (dependencies.js:15)
    at ia (dependencies.js:15)
    at qs (dependencies.js:15)
    at kc (dependencies.js:15)
    at Sc (dependencies.js:15)
    at Ec (dependencies.js:15)
    at mc (dependencies.js:15)
    at dependencies.js:15
    at t.unstable_runWithPriority (dependencies.js:15)
    at Ho (dependencies.js:15)
    at Go (dependencies.js:15)
    at Ko (dependencies.js:15)
    at lc (dependencies.js:15)
    at Ta (dependencies.js:15)
    at dependencies.js:15
    at dependencies.js:15
    at Object.next (dependencies.js:15)
    at a (dependencies.js:15)
(anonymous) @ dependencies.js:15
index.js:2 Refused to load the script 'https://cdn.s.httpie.io/next-integrations/middleware/analytics.js-middleware-braze-deduplicate/latest/analytics.js-middleware-braze-deduplicate.js.gz' because it violates the following Content Security Policy directive: "script-src 'self' data: 'unsafe-eval' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Code of Conduct

jkbrzt commented 2 years ago

Thank you for the report, @rylan-michael! We’re looking into it 👀

jkbrzt commented 2 years ago

We’ve found the root cause (header names with a trailing -) and fixed the issue. A new release is coming later today or tomorrow latest.

In the meantime, here’s how to fix it locally:

image
  1. On the desktop, open DevTools ( + + I)
  2. Go to the Application tab
  3. Select Local storage / file://
  4. Type -" in the filter field
  5. In the filtered row’s value field, replace -" with " (you can do that in your editor)
  6. Save the value
  7. Reload the app ( + R)
rylan-michael commented 2 years ago

That worked and I'm back in action 🎉

jkbrzt commented 2 years ago

@rylan-michael a quick update: We’ve just released 2022.7.0 so this issue should be officially gone now.