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.

Context contains dictionary instead of request object

See original GitHub issue

Hello, today I found that pull request #284 broke info.context that contains {"request:" request} instead of request object (as in version 0.11.0).

Are you going to fix it, or should I change my production code?

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rafalpcommented, Aug 10, 2020

Hi @PapiCZ, thanks for bringing this up.

This change is here to stay, for consistency between server implementations (as well as our docs).

I also don’t think you should make these breaking changes between minor versions. There should be at least some kind of backward compatibility.

Please take note that Ariadne’s major is at „0”, which in our eyes signifies that things are still not set in stone. Hovewer of all changes we’ve introduced to the library over recent year or so, this is AFAIR only breaking change.

Thanks for bringing this up, and sorry for this suprise.

0reactions
rafalpcommented, Apr 12, 2022

Closing this as we no longer provide Django app out of the box.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python context objects better to use dictionary or attributes?
In my Python app, I need to create a simple RequestContext object that contains the actual request to send, as ...
Read more >
Request and response objects - Django documentation
A dictionary-like object containing all given HTTP POST parameters, providing that the request contains form data. See the QueryDict documentation below.
Read more >
Dictionary<string, object> or dynamic model is not supported ...
When the context parameter contains a model of type Dictionary<string, object> or dynamic , expressions in a layout view cannot be bound to ......
Read more >
Dictionaries in Python - Real Python
A dictionary can contain another dictionary. A dictionary can also contain a list, and vice versa. Dictionaries differ from lists primarily in how...
Read more >
Advanced Usage — Requests 2.28.1 documentation
The Response object contains all of the information returned by the server and also contains the Request object you created originally.
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