!eqFVNIBvaoifuUlQks:matrix.org

astroquery

8 Members
4 Servers

Load older messages


SenderMessageTime
6 Jun 2017
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org In [319]: result1b = S.post('http://archive.noao.edu/search/send_simple_query', data=dd) 15:43:44
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgRedacted or Malformed Event15:43:44
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org In [320]: assert result1b.text == 'OK' 15:43:45
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgRedacted or Malformed Event15:43:46
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org In [321]: result2b = S.post('http://archive.noao.edu/search/list_resources') 15:43:47
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgRedacted or Malformed Event15:43:48
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgIn [322]: result2b15:43:53
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org Out[322]: <Response [500]> 15:43:57
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org```15:44:02
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org (edited) ``` => ```In [317]: r = S.get('http://archive.noao.edu/search/query') In [318]: S.headers['X-CSRF-Token'] = BeautifulSoup(r.text, 'html5lib').find('meta',{'name':'csrf-token'}).attrs['content'] In [319]: result1b = S.post('http://archive.noao.edu/search/send_simple_query', data=dd) In [320]: assert result1b.text == 'OK' In [321]: result2b = S.post('http://archive.noao.edu/search/list_resources') In [322]: result2b Out[322]: <Response [500]>``` 15:44:08
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org
In [317]: r = S.get('http://archive.noao.edu/search/query')

In [318]: S.headers['X-CSRF-Token'] = BeautifulSoup(r.text, 'html5lib').find('meta',{'name':'csrf-token'}).attrs['content']

In [319]: result1b = S.post('http://archive.noao.edu/search/send_simple_query', data=dd)

In [320]: assert result1b.text == 'OK'

In [321]: result2b = S.post('http://archive.noao.edu/search/list_resources')

In [322]: result2b
Out[322]: <Response [500]>
15:45:42
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org gitlab.noao.edu/mjg/datalab 15:49:21
7 Jun 2017
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org @keflavich hi. Can we discuss here? 19:34:46
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgyes19:39:12
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.orgThe condition is still the same. 19:41:38
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org The response I am getting right now by making a series of request with same cookies and csrf-token is still a Application Error 19:42:59
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.orgThis error is similar to clearing the proxy in the browser and not allowing the noao website to set proxy in the browser. 19:43:46
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org In this case you also get a Application Error 19:44:01
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org I have also tried to set the entire headers same as the last query to /send_simple_query 19:45:15
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.organd that is also not yielding any fruitful response. Same Application Error19:45:35
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org what do you mean "set the proxy"? 19:49:54
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgbut, OK, I will help investigate this further19:50:12
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org Sorry, I meant cookies. 19:50:56
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orgah, ok19:50:58
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org alright, so it's behaving as if there are no cookies. 19:51:04
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.orgyeah19:51:08
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.orginteresting.19:51:09
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org OK, then while we investigate, why don't you have a look over the latest MAST pull request? Since that was your original idea, it would be a useful learning experience for you to help with the review of that PR 19:51:56
@gitter_keflavich:matrix.org@gitter_keflavich:matrix.org (there probably isn't much to say, but engaging in the review will be helpful to both you and us) 19:52:10
@gitter_ayushyadav:matrix.org@gitter_ayushyadav:matrix.org Seems like that. You can try this in your browser as well by disallowing noao website to set cookies and then when you go to the /list_resources it will throw a Application Error 19:52:30

Show newer messages


Back to Room ListRoom Version: