question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--offline not being recognized

See original GitHub issue

Checklist

  • I’ve searched for similar issues.
  • I’m using the latest version of HTTPie.

OS: Ubuntu 20.04 LTS

Minimal reproduction code and steps

  1. pip3 install httpie
  2. http google.com --offline

Current result

http: error: unrecognized arguments: --offline

Expected result

image

https://httpie.io/docs/cli/introduction


Debug output

Please re-run the command with --debug, then copy the entire command & output and paste both below:

HTTPie 1.0.3
Requests 2.22.0
Pygments 2.3.1
Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0]
/usr/bin/python3
Linux 5.13.0-28-generic

<Environment {
    "colors": 256,
    "config": {
        "__meta__": {
            "about": "HTTPie configuration file",
            "help": "https://httpie.org/doc#config",
            "httpie": "1.0.3"
        },
        "default_options": "[]"
    },
    "config_dir": "/home/igor/.httpie",
    "is_windows": false,
    "stderr": "<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>",
    "stderr_isatty": true,
    "stdin": "<_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>",
    "stdin_encoding": "utf-8",
    "stdin_isatty": true,
    "stdout": "<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>",
    "stdout_encoding": "utf-8",
    "stdout_isatty": true
}>
usage: http [--json] [--form] [--pretty {all,colors,format,none}] [--style STYLE] [--print WHAT] [--headers] [--body] [--verbose] [--all]
            [--history-print WHAT] [--stream] [--output FILE] [--download] [--continue]
            [--session SESSION_NAME_OR_PATH | --session-read-only SESSION_NAME_OR_PATH] [--auth USER[:PASS]] [--auth-type {basic,digest}]
            [--proxy PROTOCOL:PROXY_URL] [--follow] [--max-redirects MAX_REDIRECTS] [--timeout SECONDS] [--check-status] [--verify VERIFY]
            [--ssl {ssl2.3,tls1,tls1.1,tls1.2}] [--cert CERT] [--cert-key CERT_KEY] [--ignore-stdin] [--help] [--version] [--traceback]
            [--default-scheme DEFAULT_SCHEME] [--debug]
            [METHOD] URL [REQUEST_ITEM [REQUEST_ITEM ...]]
http: error: unrecognized arguments: --offline

Additional information, screenshots, or code examples

https://httpie.io/docs/cli/introduction

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ko2incommented, Aug 4, 2022

@jakubroztocil You’re right. I’ve also httpie installed with apt. I uninstall from apt and now it works. Thanks.

1reaction
jakubroztocilcommented, Aug 4, 2022

@ko2in you may have the 1.0.3 version installed using another method (e.g., pip or apt). So if you uninstall it (and reinstall the newer snap, if needed), you should be good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting offline printer problems in Windows
Your printer might appear offline if it can't communicate with your PC. Try following these steps to get your printer back online.
Read more >
Printer NOT Working / Offline / Not Recognized - Fix - YouTube
How to Fix Printer Issues in Windows PC, Laptop windowsprinter offlineprinter status not connectedPrinter not recognized by your ...
Read more >
What To Do When Your Printer is Offline - Driver Easy
Method 1: Check Printer Connection · Power off and then power on your printer to restart it. Wait for a while for it...
Read more >
Printer Offline? 10 Fixes to Get It Back Online in Windows 10
First things first: check all the printer cables. Ensure they are securely plugged into both the printer and the computer. Second, check that ......
Read more >
How to Get Your Printer Online If It's Showing Offline
If you still haven't found a fix to get your printer online, let the Printer Troubleshooter help you out. It's a built-in tool...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found