Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TypeError at /api/geo-details/get_locality_options/
- get_locality_options() missing 1 required positional argument: 'search_request'
- Request Method: POST
- Request URL: http://forza-dev.kitway.com.ua/api/geo-details/get_locality_options/
- Django Version: 1.11.8
- Python Executable: /usr/bin/python3
- Python Version: 3.6.3
- Python Path: ['/app', '/usr/bin', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages']
- Server time: Чт, 18 Січ 2018 12:15:03 +0200
- Installed Applications:
- ['microfinance.apps.authentication',
- 'modeltranslation',
- 'corsheaders',
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'django_assets',
- 'django_js_reverse',
- 'django_extensions',
- 'openinghours',
- 'rosetta',
- 'rest_framework',
- 'rest_framework.authtoken',
- 'rest_framework_swagger',
- 'rangefilter',
- 'ckeditor',
- 'smart_docs',
- 'sms_sender',
- 'fixtures_migrator',
- 'tempometry',
- 'ukrmail',
- 'microfinance.libs',
- 'microfinance.apps.backoffice',
- 'microfinance.apps.user_profile',
- 'microfinance.apps.agent',
- 'microfinance.apps.documents',
- 'microfinance.apps.company',
- 'microfinance.libs.bankid',
- 'silk']
- Installed Middleware:
- ['silk.middleware.SilkyMiddleware',
- 'corsheaders.middleware.CorsMiddleware',
- 'django.middleware.security.SecurityMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware']
- Traceback:
- File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
- 41. response = get_response(request)
- File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
- 187. response = self.process_exception_by_middleware(e, request)
- File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
- 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
- 58. return view_func(*args, **kwargs)
- File "/usr/lib/python3.6/site-packages/django/views/generic/base.py" in view
- 68. return self.dispatch(request, *args, **kwargs)
- File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
- 494. response = self.handle_exception(exc)
- File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
- 454. self.raise_uncaught_exception(exc)
- File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
- 491. response = handler(request, *args, **kwargs)
- File "/usr/lib/python3.6/site-packages/rest_framework/decorators.py" in handler
- 53. return func(*args, **kwargs)
- File "/app/microfinance/apps/geo_service/views.py" in geo_details
- 54. context = getattr(service, method)(**request.data)
- Exception Type: TypeError at /api/geo-details/get_locality_options/
- Exception Value: get_locality_options() missing 1 required positional argument: 'search_request'
- Request information:
- USER: d9925507-647a-4488-9ead-f4b1edced768
- GET: No GET data
- POST: No POST data
- FILES: No FILES data
- COOKIES: No cookie data
- META:
- CONTENT_LENGTH = '59'
- CONTENT_TYPE = 'application/json;charset=UTF-8'
- HTTP_ACCEPT = 'application/json, text/plain, */*'
- HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
- HTTP_ACCEPT_LANGUAGE = 'ru,uk-UA;q=0.8,uk;q=0.6,en-US;q=0.4,en;q=0.2'
- HTTP_AUTHORIZATION = 'Token 7bed0c08e030e85f977f6bd3141f8453d5ab7f33'
- HTTP_CONNECTION = 'close'
- HTTP_HOST = 'forza-dev.kitway.com.ua'
- HTTP_ORIGIN = 'https://client.forza-dev.kitway.com.ua'
- HTTP_REFERER = 'https://client.forza-dev.kitway.com.ua/profile/'
- HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
- HTTP_X_FORWARDED_FOR = '77.120.243.5'
- HTTP_X_REAL_IP = '77.120.243.5'
- PATH_INFO = '/api/geo-details/get_locality_options/'
- QUERY_STRING = ''
- RAW_URI = '/api/geo-details/get_locality_options/'
- REMOTE_ADDR = '127.0.0.1'
- REMOTE_PORT = '54088'
- REQUEST_METHOD = 'POST'
- SCRIPT_NAME = ''
- SERVER_NAME = '127.0.0.1'
- SERVER_PORT = '8000'
- SERVER_PROTOCOL = 'HTTP/1.0'
- SERVER_SOFTWARE = 'gunicorn/19.7.1'
- gunicorn.socket = <socket.socket fd=14, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 8000), raddr=('127.0.0.1', 54088)>
- wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fb321522390>
- wsgi.file_wrapper = ''
- wsgi.input = <gunicorn.http.body.Body object at 0x7fb3215224e0>
- wsgi.multiprocess = True
- wsgi.multithread = False
- wsgi.run_once = False
- wsgi.url_scheme = 'http'
- wsgi.version = '(1, 0)'
- Settings:
- Using settings module microfinance.settings.staging
- ABSOLUTE_URL_OVERRIDES = {}
- ADMINS = []
- ADMIN_URL_PREFIX = '^admin/'
- ALLOWED_HOSTS = ['*']
- API_URL_PREFIX = '********************'
- APPEND_SLASH = True
- ASSETS_AUTO_BUILD = True
- ASSETS_CACHE = True
- ASSETS_DEBUG = True
- ASSETS_LOAD_PATH = ['microfinance/apps/agent/static', 'microfinance/apps/authentication/static', 'microfinance/apps/backoffice/static', 'microfinance/apps/user_profile/static', 'microfinance/static']
- ASSETS_MANIFEST = 'cache'
- ASSETS_ROOT = '/app/microfinance/var/static_build'
- ASSETS_UPDATER = 'timestamp'
- ASSETS_URL_EXPIRE = None
- ASSETS_URL_MAPPING = {}
- ASSETS_VERSIONS = 'hash'
- AUTHENTICATION_BACKENDS = "('microfinance.apps.authentication.backends.PhonePasswordBackend', 'microfinance.apps.authentication.backends.InnPasswordBackend', 'microfinance.apps.authentication.backends.PhoneCodeBackend', 'microfinance.apps.authentication.backends.StaffEmailBackend')"
- AUTHORISATION_PHONE_CONFIRMATION_CODE_LENGTH = 8
- AUTH_PASSWORD_VALIDATORS = '********************'
- AUTH_USER_MODEL = 'authentication.User'
- BACKOFFICE_API_URL_PREFIX = '********************'
- BACKOFFICE_URL_PREFIX = '^backoffice/'
- BANK_ID_AUTH_DOMAIN = 'bankid.privatbank.ua'
- BANK_ID_CERT = '/app/microfinance/settings/bank_id_cert.rst'
- BANK_ID_CLIENT_ID = ''
- BANK_ID_CLIENT_SECRET = '********************'
- BASE_DIR = '/app/microfinance'
- CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
- CACHE_FILE_MODE = None
- CACHE_MIDDLEWARE_ALIAS = 'default'
- CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
- CACHE_MIDDLEWARE_SECONDS = 600
- CKEDITOR_CONFIGS = {'default': {'toolbar': 'Custom', 'toolbar_Custom': [['Undo', 'Redo', '-', 'Bold', 'Italic', 'Underline', '-', 'Link', 'Unlink', 'Anchor', '-', 'Format', '-', 'Maximize', '-', 'Table', '-', 'Image'], ['Font', 'FontSize'], ['TextColor', 'BGColor'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['RemoveFormat', 'Source']]}, 'cms': {'toolbar': 'Advanced'}}
- CORS_ORIGIN_ALLOW_ALL = True
- CSRF_COOKIE_AGE = 31449600
- CSRF_COOKIE_DOMAIN = None
- CSRF_COOKIE_HTTPONLY = False
- CSRF_COOKIE_NAME = 'csrftoken'
- CSRF_COOKIE_PATH = '/'
- CSRF_COOKIE_SECURE = False
- CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
- CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
- CSRF_TRUSTED_ORIGINS = []
- CSRF_USE_SESSIONS = False
- DASHBOARD_STATS_HANDLERS = "('microfinance.apps.authentication.dashboard.UserProfileDash',)"
- DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'microfinance_db', 'USER': 'microfinance', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
- DATABASE_ROUTERS = []
- DATA_UPLOAD_MAX_MEMORY_SIZE = None
- DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
- DATETIME_FORMAT = '%d.%m.%Y %H:%M'
- DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
- DATE_FORMAT = '%d.%m.%Y'
- DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
- DEBUG = True
- DEBUG_PROPAGATE_EXCEPTIONS = False
- DECIMAL_SEPARATOR = '.'
- DEFAULT_CHARSET = 'utf-8'
- DEFAULT_CONTENT_TYPE = 'text/html'
- DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
- DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
- DEFAULT_FROM_EMAIL = 'webmaster@localhost'
- DEFAULT_INDEX_TABLESPACE = ''
- DEFAULT_PHONE_REGION_CODE = 'UA'
- DEFAULT_TABLESPACE = ''
- DISALLOWED_USER_AGENTS = []
- EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- EMAIL_HOST = 'localhost'
- EMAIL_HOST_PASSWORD = '********************'
- EMAIL_HOST_USER = ''
- EMAIL_PORT = 25
- EMAIL_SENDER_EXTENDED_MODE = False
- EMAIL_SSL_CERTFILE = None
- EMAIL_SSL_KEYFILE = '********************'
- EMAIL_SUBJECT_PREFIX = '[Django] '
- EMAIL_TIMEOUT = None
- EMAIL_USE_LOCALTIME = False
- EMAIL_USE_SSL = False
- EMAIL_USE_TLS = False
- FILE_CHARSET = 'utf-8'
- FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
- FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
- FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
- FILE_UPLOAD_PERMISSIONS = None
- FILE_UPLOAD_TEMP_DIR = None
- FIRST_DAY_OF_WEEK = 0
- FIXTURE_DIRS = []
- FORCE_SCRIPT_NAME = None
- FORMAT_MODULE_PATH = None
- FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
- HTTP_HOST = 'http://127.0.0.1:8890'
- IGNORABLE_404_URLS = []
- INPUT_DATE_FORMAT = '%Y-%m-%d'
- INSTALLED_APPS = ['microfinance.apps.authentication', 'modeltranslation', 'corsheaders', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_assets', 'django_js_reverse', 'django_extensions', 'openinghours', 'rosetta', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_swagger', 'rangefilter', 'ckeditor', 'smart_docs', 'sms_sender', 'fixtures_migrator', 'tempometry', 'ukrmail', 'microfinance.libs', 'microfinance.apps.backoffice', 'microfinance.apps.user_profile', 'microfinance.apps.agent', 'microfinance.apps.documents', 'microfinance.apps.company', 'microfinance.libs.bankid', 'silk']
- INTERNAL_IPS = []
- JS_REVERSE_INCLUDE_ONLY_NAMESPACES = ['authentication', 'authentication-api', 'backoffice', 'backoffice-api', 'user-profile', 'user-profile-api', 'agent', 'agent-api', '']
- JS_REVERSE_JS_VAR_NAME = 'Urls'
- LANGUAGES = "(('uk', 'УкраїнÑька'), ('ru', 'РуÑÑкий'))"
- LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
- LANGUAGE_CODE = 'uk'
- LANGUAGE_COOKIE_AGE = None
- LANGUAGE_COOKIE_DOMAIN = None
- LANGUAGE_COOKIE_NAME = '_locale_'
- LANGUAGE_COOKIE_PATH = '/'
- LOCALE_PATHS = ['/app/microfinance/locale']
- LOGGING = {'version': 1, 'disable_existing_loggers': False, 'formatters': {'verbose': {'format': '[%(asctime)s] %(levelname)s [%(name)s:%(module)s:%(lineno)s] %(message)s', 'datefmt': '%d/%b/%Y %H:%M:%S'}, 'simple': {'format': '%(levelname)s %(asctime)s %(module)s %(message)s'}}, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'null': {'level': 'DEBUG', 'class': 'logging.NullHandler'}, 'error_file': {'level': 'ERROR', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'microfinance/var/logs/error.log', 'maxBytes': 500000, 'backupCount': 5, 'formatter': 'verbose'}, 'debug_file': {'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'microfinance/var/logs/debug.log', 'maxBytes': 500000, 'backupCount': 10, 'formatter': 'verbose'}, 'sentry': {'level': 'ERROR', 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler'}, 'requests_file': {'level': 'INFO', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'microfinance/var/logs/requests.log', 'maxBytes': 500000, 'backupCount': 10, 'formatter': 'verbose'}, 'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple'}}, 'loggers': {'django': {'handlers': ['error_file', 'sentry'], 'propagate': True, 'level': 'ERROR'}, 'microfinance': {'handlers': ['debug_file'], 'propagate': True, 'level': 'DEBUG'}, 'django.server': {'handlers': ['requests_file'], 'propagate': True, 'level': 'INFO'}}}
- LOGGING_CONFIG = 'logging.config.dictConfig'
- LOGIN_REDIRECT_URL = '/accounts/profile/'
- LOGIN_URL = '/accounts/login/'
- LOGOUT_REDIRECT_URL = None
- MANAGERS = []
- MEDIA_ROOT = '/app/microfinance/media/'
- MEDIA_URL = '/media/'
- MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
- MIDDLEWARE = ['silk.middleware.SilkyMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
- MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
- MIGRATION_MODULES = {}
- MONTH_DAY_FORMAT = 'F j'
- NOTIFICATION_ADDRESSEE_DEFINITION = {'sms': 'microfinance.apps.authentication.helpers.get_user_phone_number'}
- NOTIFICATION_SERVICES = {'sms': 'sms_sender.service.SmsService'}
- NUMBER_GROUPING = 0
- OPENINGHOURS_PREMISES_MODEL = 'company.CompanyOffice'
- PASSWORD_HASHERS = '********************'
- PASSWORD_RESET_TIMEOUT_DAYS = '********************'
- PREPEND_WWW = False
- PROJECT_NAME = 'microfinance'
- RAVEN_CONFIG = {'dsn': 'https://de0c1d87ffbb485d9318676c8189dc14:4d7768b8b1334ae8940eb5dff41eca2d@sentry.kit-xxi.com.ua/15', 'release': ''}
- REGISTRATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
- RESOLVER = <django_assets.env.DjangoResolver object at 0x7fb31e7e55f8>
- REST_FRAMEWORK = {'DEFAULT_MODEL_SERIALIZER_CLASS': 'rest_framework.serializers.ModelSerializer', 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'], 'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication'], 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',)}
- ROOT_URLCONF = 'microfinance.urls'
- SECRET_KEY = '********************'
- SECURE_BROWSER_XSS_FILTER = False
- SECURE_CONTENT_TYPE_NOSNIFF = False
- SECURE_HSTS_INCLUDE_SUBDOMAINS = False
- SECURE_HSTS_PRELOAD = False
- SECURE_HSTS_SECONDS = 0
- SECURE_PROXY_SSL_HEADER = None
- SECURE_REDIRECT_EXEMPT = []
- SECURE_SSL_HOST = None
- SECURE_SSL_REDIRECT = False
- SERVER_EMAIL = 'root@localhost'
- SESSION_CACHE_ALIAS = 'default'
- SESSION_COOKIE_AGE = 1209600
- SESSION_COOKIE_DOMAIN = None
- SESSION_COOKIE_HTTPONLY = True
- SESSION_COOKIE_NAME = 'sessionid'
- SESSION_COOKIE_PATH = '/'
- SESSION_COOKIE_SECURE = False
- SESSION_ENGINE = 'django.contrib.sessions.backends.db'
- SESSION_EXPIRE_AT_BROWSER_CLOSE = False
- SESSION_FILE_PATH = None
- SESSION_SAVE_EVERY_REQUEST = False
- SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
- SETTINGS_MODULE = 'microfinance.settings.staging'
- SHORT_DATETIME_FORMAT = 'm/d/Y P'
- SHORT_DATE_FORMAT = 'm/d/Y'
- SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
- SILENCED_SYSTEM_CHECKS = []
- SILKY_AUTHENTICATION = True
- SILKY_AUTHORISATION = True
- SILKY_MAX_RECORDED_REQUESTS = 2000
- SILKY_META = True
- SILKY_PYTHON_PROFILER = True
- SMS_SENDER_EXTENDED_MODE = False
- STATICFILES_DIRS = "('/app/microfinance/static', '/app/microfinance/var/static_build')"
- STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
- STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
- STATIC_ROOT = '/app/microfinance/var/static'
- STATIC_URL = '/static/'
- SWAGGER_SETTINGS = {'JSON_EDITOR': True, 'SHOW_REQUEST_HEADERS': True}
- TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/microfinance/templates/'], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.i18n', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]
- TEST_NON_SERIALIZED_APPS = []
- TEST_RUNNER = 'django.test.runner.DiscoverRunner'
- THOUSAND_SEPARATOR = ','
- TIME_FORMAT = 'P'
- TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
- TIME_ZONE = 'Europe/Kiev'
- USER_MODEL = 'authentication.User'
- USER_MODEL_APP = 'authentication'
- USER_MODEL_NAME = 'User'
- USER_MODEL_STR = 'microfinance.apps.authentication.models.User'
- USER_PERMISSION_CACHE_TIMEOUT = 3600
- USE_ETAGS = False
- USE_I18N = True
- USE_L10N = True
- USE_THOUSAND_SEPARATOR = False
- USE_TZ = False
- USE_X_FORWARDED_HOST = False
- USE_X_FORWARDED_PORT = False
- WSGI_APPLICATION = 'microfinance.wsgi.application'
- X_FRAME_OPTIONS = 'SAMEORIGIN'
- YEAR_MONTH_FORMAT = 'F Y'
- You're seeing this error because you have DEBUG = True in your
- Django settings file. Change that to False, and Django will
- display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement