Skip to content

Instantly share code, notes, and snippets.

View EugeneFeshchenko's full-sized avatar

Eugene Feshchenko EugeneFeshchenko

View GitHub Profile
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/root/.pyenv/versions/vagrant/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
utility.execute()
File "/root/.pyenv/versions/vagrant/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/root/.pyenv/versions/vagrant/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/root/.pyenv/versions/vagrant/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>403 No Beer for You</title>
</head>
<body>
<h1>Error 403 No Beer for You</h1>
<p>No Beer for You</p>
api_id = settings.INTERNAL_DEFAULTS['HOUZZ']['API_ID']
api_token = settings.INTERNAL_DEFAULTS['HOUZZ']['API_TOKEN']
api_username = settings.INTERNAL_DEFAULTS['HOUZZ']['API_USERNAME']
api_url = settings.INTERNAL_DEFAULTS['HOUZZ']['API_URL']
api_url += '?format=json&method=getOrders'
headers = {'X-HOUZZ-API-SSL-TOKEN': api_token,
'X-HOUZZ-API-USER-NAME': api_username,
'X-HOUZZ-API-APPNAME': api_id,
}
import datetime
import itertools
with open('file.txt', 'r') as f:
read_data = f.read()
print 'Input {0}'.format(read_data)
a = []
a = read_data.split('/')
a = [int(x) for x in a]
days = []
{
u'transactions':[
{
'commodity_code':u'',
'volume':u'',
'volume_uom':u'',
'weight':u'',
u'reference_id':u'90304',
u'shipment':{
u'carrier_id':'\'\\\'\\\\\\\'"u\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\'"\\\\\\\'\\\'\'',
ERROR Unable to reach Sentry log server: 'module' object has no attribute 'sslwrap' (url: https://app.getsentry.com/api/41623/store/)
May 13 11:15:29 ufgtools app/web.2: Traceback (most recent call last):
May 13 11:15:29 ufgtools app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/raven/transport/threaded.py", line 159, in send_sync
May 13 11:15:29 ufgtools app/web.2: super(ThreadedHTTPTransport, self).send(data, headers)
May 13 11:15:29 ufgtools app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/raven/transport/http.py", line 49, in send
May 13 11:15:29 ufgtools app/web.2: ca_certs=self.ca_certs,
May 13 11:15:29 ufgtools app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/raven/utils/http.py", line 62, in urlopen
May 13 11:15:29 ufgtools app/web.2: return opener.open(url, data, timeout)
May 13 11:15:29 ufgtools app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/external_urllib2.py", line 15, in