17

I have posted a few questions on Stack Overflow. Some of them are fine and a few are not. I am not sure why this question is not gaining enough attention. The issue is very much genuine.

There is enough code to understand where the issue is and I have used the most appropriate tags. The tags which I used are very popular and widely used, but still my question seems to be unnoticed or ignored.

The issue may be with the title, but the issue should be in the question title, right?

11
  • 2
  • 21
    3 long-ish comments and 1 answer is pretty average attention. I've had much worse…
    – deceze Mod
    Commented Dec 21, 2016 at 12:20
  • 8
    Both questions are about a pretty specific product I hadn't even heard of until now… not surprised few people are looking at it.
    – deceze Mod
    Commented Dec 21, 2016 at 12:22
  • 4
    @deceze nopCommerce is pretty well known when you're in that sector, but it seems that its presence on SO is rather small. The project has more stars on GitHub than it has questions on SO.
    – user247702
    Commented Dec 21, 2016 at 12:23
  • The issue you're facing is probably caused by how you setup and register the dependencies, That code or config isn't shown and the best everyone does is guessing.
    – rene
    Commented Dec 21, 2016 at 12:24
  • @rene would you please help me with that segment.... I am a rookie. If there is some way i could accomodate that part too, i would definitely do it! Commented Dec 21, 2016 at 12:25
  • 4
    @Stijn I don't doubt it's well known by the people who know it. But it isn't exactly jQuery…
    – deceze Mod
    Commented Dec 21, 2016 at 12:25
  • Nanana... not jQuery..... :D Commented Dec 21, 2016 at 12:32
  • I have an issue narrowing down my problem here.... my issue is, i am not able to find weather the problem is with the DI(Autofac) or with nopCommerce Code, which does not allow the way i use it. The two questions on SO together would give a better idea about it.... Commented Dec 21, 2016 at 13:00
  • 7
    Bounties are usually the way to attract more attention to a question if you want to spend your rep on it. Commented Dec 21, 2016 at 22:45
  • 1
    Stick a bounty on it ?
    – Shark
    Commented Dec 23, 2016 at 15:41

1 Answer 1

34

First off, you should be commended for trying to research your problem and for including some info about things you tried and that didn't work. But in spite of your hard work, I still see some fairly major problems with the question.

  1. On the first read, my immediate gut reaction is, "technology soup." Someone who doesn't immediately recognize everything you're using is going to struggle making sense of it. Most users are probably going to have to go look up at least one of these technologies.
  2. The English doesn't flow very well. Combined with the above, this makes it difficult or at least time consuming to understand the issue.
  3. There's a good amount of fluff that could be removed without changing anything about the question. Some examples:

    The code breaks when i call the API.

    I have done enough of search on NopCommerce documentation, forums and on Stack Overflow. but there was no solution to my issue.

    maybe it comes and sometimes not.

  4. Your problem is hard. This line jumps out at me:

    I have tried debugging the code but the exception is not generated regularly

    This means you have a heisenbug. The inability to reproduce the bug on demand adds an order of magnitude to the difficulty in solving it. It could also mean that other users can't reproduce it if it requires a slow network connection or something else in their environment.

  5. There's no straightforward way to put together a compilable solution to test with. I'm not sure you can narrow this down much more, but even if you can't, it's not clear what things I need in my solution to build something that will reproduce your problem. Try to narrow this down. A simple MVCE that can be copy/pasted into a main method is the best, but should make it as easy as possible for any random strange to compile some code and see the issue.

  6. The issue isn't completely clear. Okay, yes, you get null ref exceptions. At what point? When launching the site? When accessing an endpoint? A stack trace might go a long way to helping clarify this, but you should also make it explicit.

All this means that this question is going to be a time sink, and answerers have limited time. This is because of the combined difficulty in understanding, reproducing, and solving your problem. We'd generally rather spend our time on questions we are pretty confident we can come up with a solution for. Don't misunderstand; hard questions are perfectly fine. But also understand that not as many people are going to have the time on their hands to help with them.

So the key is to spend some time on providing things that speed up answers' ability to help. Here are some steps you should take:

  1. Create an MVCE, or as close to one as you can. This is kind of involved, so I'll break it down some.

    • Create a solution that reproduces the problem with only the technologies you mention.
    • Now cut out as many technologies as you can without making the error go away. Replace Autofac with something quick and dirty. Replace WebAPI with something quick and dirty. If possible, cut out the fact it's a website entirely (i.e., create a command line MVCE instead). It doesn't need to fully work. It just needs to demonstrate the problem. And the fewer technologies are in your example, the closer you are to having the solution yourself and the closer someone else is to helping you track it down.
    • Now try to make it reproduce the error consistently. It'll be a whole lot easier for anyone to help if they only have to run it once to see the error happen.
    • Make it clear in the question what is needed to reproduce. I should be able to follow a couple of steps and have a fully running code base that throws the error you're getting. If I need NuGet packages installed, make that clear. If there are a lot of them, go back and remove as many as you can. If you still have a lot of them, I might suggest just including the contents of a packages.config file so I can drop it into my project and run. But whatever I need to run this code should be very clear and simple. Any more than 2 or 3 steps plus copying your code is too much.
  2. Make the error very clear before you get into things you tried and what didn't work. Include a brief description and a stack trace.

  3. Remove any content that doesn't help explain the problem or indicate things that didn't work for you. It saves your readers' time if they don't have to figure out what's important and what's not.

Along the way, you might figure out the problem yourself. Great! It's a success to solve your own problem. But until you've narrowed things down some more, it's going to be pretty hard for anyone else to help you, either.

1
  • Perfect answer...... I tried developing it simple. If you try coding the way i did, it will surely break! but on multiple http requests. i use postman to test. if i open multiple tabs in postman and try, it will break maybe after 3 or 4 requests in a row! Commented Dec 22, 2016 at 13:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .