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.

Http post tutorial vague description

See original GitHub issue

📚 Docs or angular.io bug report

Description

Error handling is different from get method.
"Of course it catches errors in much the same manner described above. " very vague

https://angular.io/guide/http#making-a-post-request First it’s not the same kind of error handler. Second, following the tutorial throws error

Type 'Observable<never>' provides no match for the signature '(err: any, caught: Observable<File>): ObservableInput<any>'.

🔬 Minimal Reproduction

What’s the affected URL?**

https://angular.io/guide/http#making-a-post-request

Reproduction Steps**

Follow the tutorial.

Expected vs Actual Behavior**

Expected: post tutorial has a working code snippet. Actual: tutorial skips error handling on post request.

📷Screenshot

image

🌍 Your Environment

Windows 10 64 bit Pro

Browser info

Google Chrome Version 76.0.3809.87 (Official Build) (64-bit)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kapunahelewongcommented, May 29, 2020

Status: docs team can clarify description with minimal engineering resources.

1reaction
kapunahelewongcommented, Aug 7, 2019

@zzj0402 Thank you for the details. They’ll really help in improving this doc. I might not be able to rewrite that doc right away, but this issue is in our list of important issues to work on. Please feel free to add as much as you think is relevant to this issue as I will come back here as soon as I can to reference your feedback for improving the doc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP request smuggling - Web Security Academy - PortSwigger
In this section, we'll explain HTTP request smuggling attacks and describe how common request smuggling vulnerabilities can arise. Labs If you're already ....
Read more >
Simple C example of doing an HTTP POST and consuming ...
A message has a header part and a message body separated by a blank line. The blank line is ALWAYS needed even if...
Read more >
Using XMLHttpRequest - Web APIs | MDN
In this guide, we'll take a look at how to use XMLHttpRequest to issue HTTP requests in order to exchange data between the...
Read more >
The 5 essential HTTP methods in RESTful API development
Use this guide to understand the differences and uses for each of ... POST is the only RESTful API HTTP method that primarily...
Read more >
Ultimate Guide To 9 Common HTTP Methods - Nordic APIs
Let's do issue a request to see only the headers of the given entry. Request: curl -X HEAD "https://petstore.swagger.io/v2/pet/10". Response ...
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