Giter Club home page Giter Club logo

Comments (3)

AgrimPrasad avatar AgrimPrasad commented on July 30, 2024

Should I use the POST endpoint instead to avoid this? If yes, could someone suggest the expected POST request body please? I don't see much in the swagger documentation for the POST request body. Thanks!

Screenshot 2021-05-25 at 11 21 01 PM

from easynmt.

AgrimPrasad avatar AgrimPrasad commented on July 30, 2024

Seems it works fine with POST requests having the following JSON request body. So I guess this is not a very high priority issue:

{
  "target_lang": "hi",
  "source_lang": "en",
  "text": [
    "Bengaluru: Karnataka - one of the worst hit states in the country in the second wave of COVID-19, has been witnessing a slump in the new case numbers over the last few weeks. The authorities, however, are of the view that It is far too early to relax.\r\nThe number of COVID-19 outnumbered fresh infections in Karnataka yet again on Tuesday, as the state reported 38,224 discharges and 22,758 new cases. Of the new cases reported today, 6,243 were from Bengaluru.\r\n\r\n\"If you look at the numbers, it has been reducing very drastically. Except for a few districts where the numbers are not coming down. In most of the districts and Bengaluru, the numbers have come down. The number should come down drastically so that we can unlock from the lockdown,\" Deputy Chief Minister Dr Ashwath Narayan told NDTV.\r\n\r\nThe state is in the middle of a strict shutdown. But that doesn't mean any major reduction in the demand for oxygen in Bengaluru as ICU beds still remain full.\r\n\r\n\"Since the number has come down very drastically - now it is 5,000 odd cases in Bengaluru (daily infections) - from when it had almost reached 25,000, it is a great relief. When it comes to ICU or ventilator, however, there is still a lot of demand,\" he said.\r\n\r\nAn extra concern is that the virus is now being reported more from rural Karnataka with often a weak health infrastructure.\r\n\r\nDr Vishal Rao of the HCG hospitals and a member of the Karnataka Covid task force said, \"It is going to be an uphill task as we move towards the districts as the health care systems get overburdened there. Even the oxygen management. In cities, we have the privilege that oxygen comes to the doorstep of the hospital. Whereas in villages and districts, hospitals have to carry their cylinders to refill them. Public health experts and virologists are repeatedly trying to enhance the surveillance in villages to ensure we are better prepared in villages. This is the time to ramp up the preparation for villages.\"\r\n\r\nHe also said that the lockdown \"definitely had a very significant impact\" on the daily infections. \"From 50,000 cases everyday, today we are at around 20,000 odd cases.It is not a reassurance that once the lockdown is lifted, we will continue to have these low numbers. But what is of concern is that the positivity rate still sticks at around 20 per cent and the mortality has jumped to about 2 per cent. We need to understand that when the waves flatten, it is not that the virus is taking rest. It is a socio-economic virus and the more we improve interactions without safety, we are going to explode and expand the spread of this virus. At an individual level we need to take up responsibility to curb the spread of this virus,\" said Dr Rao\r\n\r\nPromotedListen to the latest songs, only on JioSaavn.com\r\n\r\nWhen it comes to Bengaluru, Dr Rao said the lockdown had reduced the number of emergency oxygen requirements and the panic. \"That is because the virus has stopped moving because we have stopped moving,\" he said. \"Generally, as a rule, a health care system will not be able to cope with a sudden rise in numbers, emergency oxygen requirements or health care. The other big concern is trained manpower.\"\r\n\r\nComments\r\nMucormycosis, commonly known as Black Fungus, is also on the rise in the state. Dr Rao said: \"At HCG we are treating 30 cases and the number is on the rise. In Karnataka, currently, it must be about 700 cases. It looks like an epidemic within a pandemic at this juncture. We need to understand the source of this infection, have early detection and treatment. A committee will give a clear strategy for the state. We don't need to scare people about black fungus, we need to create awareness. What we have seen in the patients - they have all been Covid positive, most have been given steroids, majority had high sugar. 30 to 40 per cent had been given oxygen and most important - none of them had been vaccinated.\"\r\n\r\nDelhi received 144.8 mm rainfall in May this year, the highest for the month in 13 years, according to the India Meteorological Department (IMD).\r\n\"No rain is predicted in the next four to five days. So, this is the highest rainfall in May since 2008,\" Kuldeep Srivastava, the head of the IMD's regional forecasting centre, said today.\r\n\r\nThe Safdarjung Observatory, considered the official marker for the city, had recorded 21.1 mm rainfall last year, 26.9 mm in 2019 and 24.2 mm in 2018.\r\n\r\nIt had gauged 40.5 mm precipitation in 2017; 24.3 mm in 2016; 3.1 mm in 2015 and 100.2 mm in 2014, according to IMD data.\r\n\r\n"
  ]
}

from easynmt.

nreimers avatar nreimers commented on July 30, 2024

Hi @AgrimPrasad
URLs (when you use the GET method) are limited in length. After a certain length, strange things can happen.

So for longer docs, it is always advisable to send them via POST.

Will add a note to the documentation.

from easynmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.